Skip to content

Commit

Permalink
ci: add create tag workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Jul 13, 2023
1 parent 3997f77 commit 4f322eb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Create Tag 🏷️

on:
workflow_dispatch:

jobs:
create-tag:
name: Create Tag
runs-on: ubuntu-22.04
steps:
- name: Get Version
id: version
run: |
echo "::set-output name=stamp::$(date +'%y.%j.%H')"
- name: Push Tag
uses: actions/github-script@v6
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/tag_name: ${{ steps.version.outputs.stamp }}',
sha: context.sha
})

0 comments on commit 4f322eb

Please sign in to comment.