Skip to content

Commit 375efd5

Browse files
committed
Tag releases
1 parent 49fba26 commit 375efd5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/main.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
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"

0 commit comments

Comments
 (0)