diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 41f768f27..2be0e2edd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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/merge-branch@1.4.0 if: ${{ github.repository == 'AmazeeLabs/silverback-template' && github.ref == 'refs/heads/release'}}