Skip to content

Commit

Permalink
updated actions to run on master, added example action for update maj…
Browse files Browse the repository at this point in the history
…or v, added VERSION

Signed-off-by: Aaron Lippold <lippold@gmail.com>
  • Loading branch information
aaronlippold committed Dec 20, 2023
1 parent c855ccf commit 495fff2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/update-major-tag.txt
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
1 change: 1 addition & 0 deletions .github/workflows/verify-ec2-other.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: CIS AWS Foundations v2.0.0 - Other
on:
push:
branches:
- master
- main
pull_request:

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/verify-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: CIS AWS Foundations v2.0.0
on:
push:
branches:
- master
- main
pull_request:

Expand Down Expand Up @@ -53,7 +54,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"

- name: Disable ri and rdoc
run: 'echo "gem: --no-document" >> ~/.gemrc'

Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v2.0.5

0 comments on commit 495fff2

Please sign in to comment.