Skip to content

Commit

Permalink
ci: move release tagging into the test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Jan 10, 2024
1 parent c122d35 commit 512e78a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@ jobs:
${{ github.ref == 'refs/heads/dev' && vars.NETLIFY_STORYBOOK_ID != ''
}}

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y/%m/%d/%H/%M/%S')"
- name: Create Git tag for PR
uses: actions/github-script@v4
if: ${{ github.ref == 'refs/heads/release'}}
with:
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{steps.date.outputs.date}}",
sha: context.sha
})
- name: Merge release to prod (silverback-template only)
uses: devmasx/[email protected]
if: ${{ github.repository == 'AmazeeLabs/silverback-template' && github.ref == 'refs/heads/release'}}
Expand Down

0 comments on commit 512e78a

Please sign in to comment.