File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1515 build-test-publish :
1616 name : " Build -> Test -> Publish"
1717 runs-on : ubuntu-24.04
18+ outputs :
19+ tag : ${{ steps.tag.outputs.tag }}
20+ git_tag : ${{ steps.git_tag.outputs.tag }}
1821 steps :
1922 - name : Checkout repository
2023 uses : actions/checkout@v5
@@ -84,10 +87,20 @@ jobs:
8487 push : true
8588 tags : ghcr.io/serenity-js/playwright:${{ steps.tag.outputs.tag }}
8689
90+ tag :
91+ name : " Tag repository"
92+ runs-on : " ubuntu-24.04"
93+ needs : build-test-publish
94+ if : github.ref == 'refs/heads/main'
95+ permissions :
96+ contents : write
97+ id-token : write
98+
99+ steps :
87100 - name : Push Git tag
88101 if : success() && github.ref == 'refs/heads/main'
89102 env :
90- TAG_NAME : ${{ steps.git_tag .outputs.tag }}
103+ TAG_NAME : ${{ needs.build-test-publish .outputs.git_tag }}
91104 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
92105 run : |
93106 echo "Creating Git tag $TAG_NAME"
You can’t perform that action at this time.
0 commit comments