-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated actions to run on master, added example action for update maj…
…or v, added VERSION Signed-off-by: Aaron Lippold <lippold@gmail.com>
- Loading branch information
1 parent
c855ccf
commit 495fff2
Showing
4 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Update Major Release Tag | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
movetag: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get major version num and update tag | ||
run: | | ||
VERSION=${GITHUB_REF#refs/tags/} | ||
MAJOR=${VERSION%%.*} | ||
git config --global user.name 'YOUR NAME HERE' | ||
git config --global user.email 'USERNAME@users.noreply.github.com' | ||
git tag -fa ${MAJOR} -m "Update major version tag" | ||
git push origin ${MAJOR} --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ name: CIS AWS Foundations v2.0.0 - Other | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v2.0.5 |