Skip to content

Commit

Permalink
Add tag during release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hudson-newey committed Sep 29, 2024
1 parent 6f0789a commit 09b5b5a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ jobs:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H:%M:%S.%3NZ')"

- name: Create tag
uses: actions/github-script@v7
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ steps.date.outputs.date }}',
sha: context.sha
})
- name: Publish to GitHub Releases
env:
Expand Down

0 comments on commit 09b5b5a

Please sign in to comment.