Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

Add tag output~ #10

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
255cf9d
Add tag name output
monkeyWie Oct 12, 2019
2b67105
Tag and release on a specific commitish
fleskesvor Dec 29, 2019
1a72e23
Add target_commitish to tests
fleskesvor Dec 29, 2019
62bca7d
Bump handlebars from 4.2.1 to 4.5.3
dependabot[bot] Dec 30, 2019
bfe866f
try body as file, use as string otherwise
jbolda Feb 4, 2020
cf2e5a0
add encoding property
jbolda Feb 4, 2020
15708f2
add new input, error if file not found
jbolda Feb 4, 2020
76860a0
fix encoding
jbolda Feb 4, 2020
c06331b
only error on actual attempt at using bodyFromFile and reorder a bit …
jbolda Feb 6, 2020
6d0973e
reorder test mock inputs
jbolda Feb 6, 2020
e0754ec
Merge pull request #1 from jbolda/body-markdown
jbolda Feb 6, 2020
716a1bc
Add versioning action to slide major versions w/ release
IAmHughes Feb 10, 2020
fca5fb5
Merge pull request #42 from actions/IAmHughes/automate-major-versioning
IAmHughes Feb 10, 2020
0e42027
Update README to show usage of "latest" version
khitrenovich Feb 27, 2020
8f324cd
Merge pull request #45 from khitrenovich/patch-1
IAmHughes Feb 28, 2020
3cd5bbb
Update README.md
jbolda Mar 8, 2020
e28d56d
Bump acorn from 5.7.3 to 5.7.4
dependabot[bot] Apr 5, 2020
b77c216
escape double quotes in eslint command
jbolda Apr 12, 2020
d16f415
switch to snake case and body_path
jbolda Apr 12, 2020
7424051
Merge branch 'master' of https://github.com/jbolda/create-release
jbolda Apr 12, 2020
9d21c8a
update readme with body_path
jbolda Apr 12, 2020
c636154
Merge pull request #33 from actions/dependabot/npm_and_yarn/handlebar…
IAmHughes Apr 17, 2020
164c698
Merge pull request #57 from actions/dependabot/npm_and_yarn/acorn-5.7.4
IAmHughes Apr 17, 2020
6addae8
Update readme example to pin to major version
ericsciple Apr 24, 2020
da6846b
Merge pull request #62 from ericsciple/patch-1
IAmHughes May 5, 2020
7bc451a
Bump actions/github to 2.2.0
pjquirk May 12, 2020
c9ba696
Merge pull request #70 from actions/users/paquirk/ghesfixes
pjquirk May 15, 2020
f37d718
define body_path
May 26, 2020
e9cf5d9
Merge pull request #2 from ssgglobal/master
jbolda May 27, 2020
ec9ee66
Add CodeQL security scanning
jhutchings1 Jun 3, 2020
80985fc
Changed release name to be optional field
Bilge Jun 13, 2020
d28992e
Merge pull request #75 from Bilge/patch-1
Jun 16, 2020
62b2b83
Merge branch 'master' into feature/support-target-commitish
Jun 16, 2020
e9dc4ac
Merge pull request #32 from fleskesvor/feature/support-target-commitish
Jun 16, 2020
84b30a2
Merge pull request #73 from jhutchings1/codeql
Jun 16, 2020
8210505
Merge branch 'master' into master
Jul 1, 2020
d3311be
Merge pull request #50 from jbolda/master
Jul 1, 2020
91b6c4e
Fix merge conflicts
mscoutermarsh Jul 1, 2020
25a1bf7
Fix tests, broken in merge, New inputs have been added since
mscoutermarsh Jul 1, 2020
44853f2
Bump lodash from 4.17.15 to 4.17.19
dependabot[bot] Jul 18, 2020
89e8dc2
Merge pull request #81 from actions/dependabot/npm_and_yarn/lodash-4.…
Jul 21, 2020
3714d4c
Add tag name output
monkeyWie Oct 12, 2019
4a0a4d9
Merge branch 'master' of github.com:monkeyWie/create-release
monkeyWie Sep 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "Code scanning - action"

on:
push:
pull_request:
schedule:
- cron: '0 19 * * 0'

jobs:
CodeQL-Build:

# CodeQL runs on ubuntu-latest and windows-latest
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
15 changes: 15 additions & 0 deletions .github/workflows/versioning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Keep the versions up-to-date

on:
release:
types: [published]

jobs:
actions-tagger:
runs-on: windows-latest
steps:
- uses: Actions-R-Us/actions-tagger@latest
with:
publish_latest: true
env:
GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}'
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,21 @@ For more information on these inputs, see the [API Documentation](https://develo

- `tag_name`: The name of the tag for this release
- `release_name`: The name of the release
- `body`: Text describing the contents of the release
- `body`: Text describing the contents of the release. Optional, and not needed if using `body_path`.
- `body_path`: A file with contents describing the release. Optional, and not needed if using `body`.
- `draft`: `true` to create a draft (unpublished) release, `false` to create a published one. Default: `false`
- `prerelease`: `true` to identify the release as a prerelease. `false` to identify the release as a full release. Default `false`

#### `body_path`
The `body_path` is valuable for dynamically creating a `.md` within code commits and even within the Github Action steps leading up to the `create-release`.

### Outputs
For more information on these outputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#response-4) for an example of what these outputs look like

- `id`: The release ID
- `html_url`: The URL users can navigate to in order to view the release. i.e. `https://github.com/octocat/Hello-World/releases/v1.0.0`
- `upload_url`: The URL for uploading assets to the release, which could be used by GitHub Actions for additional uses, for example the [`@actions/upload-release-asset`](https://www.github.com/actions/upload-release-asset) GitHub Action
- `tag`: The simple tag name

### Example workflow - create a release
On every `push` to a tag matching the pattern `v*`, [create a release](https://developer.github.com/v3/repos/releases/#create-a-release):
Expand All @@ -41,7 +46,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ inputs:
body:
description: 'Text describing the contents of the tag.'
required: false
body_path:
description: 'Path to file with information about the tag.'
required: false
draft:
description: '`true` to create a draft (unpublished) release, `false` to create a published one. Default: `false`'
required: false
Expand All @@ -19,13 +22,18 @@ inputs:
description: '`true` to identify the release as a prerelease. `false` to identify the release as a full release. Default: `false`'
required: false
default: false
commitish:
description: 'Any branch or commit SHA the Git tag is created from, unused if the Git tag already exists. Default: SHA of current commit'
required: false
outputs:
id:
description: 'The ID of the created Release'
html_url:
description: 'The URL users can navigate to in order to view the release'
upload_url:
description: 'The URL for uploading assets to the release'
tag:
description: 'The simple tag name'
runs:
using: 'node12'
main: 'dist/index.js'
Expand Down
Loading