2020-07-01 09:12:09 -04:00
|
|
|
---
|
|
|
|
#########################
|
|
|
|
#########################
|
|
|
|
## Version GitHub Tags ##
|
|
|
|
#########################
|
|
|
|
#########################
|
2020-06-29 11:39:09 -04:00
|
|
|
|
2020-07-01 09:12:09 -04:00
|
|
|
#
|
|
|
|
# Documentation:
|
|
|
|
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
|
|
|
#
|
|
|
|
|
|
|
|
##########################
|
|
|
|
# Name of the action job #
|
|
|
|
##########################
|
2022-02-21 10:17:34 -05:00
|
|
|
name: GitHub Tag Update
|
2020-07-01 09:12:09 -04:00
|
|
|
|
|
|
|
#####################################################
|
|
|
|
# Run the job when a release is published or edited #
|
|
|
|
#####################################################
|
2020-06-29 11:39:09 -04:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published, edited]
|
|
|
|
|
2020-07-01 09:12:09 -04:00
|
|
|
#################
|
|
|
|
# Start the job #
|
|
|
|
#################
|
2022-04-11 15:52:49 -04:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-06-29 11:39:09 -04:00
|
|
|
jobs:
|
|
|
|
actions-tagger:
|
2022-04-11 15:52:49 -04:00
|
|
|
permissions:
|
|
|
|
contents: write # for Actions-R-Us/actions-tagger to create a release and add latest tag
|
2020-06-29 11:39:09 -04:00
|
|
|
runs-on: windows-latest
|
2021-11-15 11:25:36 -05:00
|
|
|
timeout-minutes: 60
|
2020-06-29 11:39:09 -04:00
|
|
|
steps:
|
2020-07-01 09:12:09 -04:00
|
|
|
#############################
|
|
|
|
# Check out the latest code #
|
|
|
|
#############################
|
2022-03-07 10:34:26 -05:00
|
|
|
- uses: actions/checkout@v3
|
2020-07-01 09:12:09 -04:00
|
|
|
|
|
|
|
######################
|
|
|
|
# Run the tag action #
|
|
|
|
######################
|
2021-04-30 18:09:49 -04:00
|
|
|
- uses: Actions-R-Us/actions-tagger@v2.0.2
|
2020-06-29 12:36:18 -04:00
|
|
|
with:
|
|
|
|
publish_latest_tag: true
|
2020-06-29 11:39:09 -04:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"
|