Skip to content

Commit

Permalink
Improved: the release workflow to create a label using the tag on rel…
Browse files Browse the repository at this point in the history
…ease
  • Loading branch information
ymaheshwari1 committed Mar 18, 2024
1 parent 9b5f091 commit 5f97374
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/common-firebase-hosting-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,14 @@ jobs:
run: firebase deploy --token "$HOTWAX_PUBLIC_SECRET" -m "Deploying via GitHub actions" --only hosting:uat
env:
HOTWAX_PUBLIC_SECRET: ${{ secrets.HOTWAX_PUBLIC_SECRET }}
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: "Fetch release tag"
run: |
echo "LABEL=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_ENV
- name: "Create label"
run: gh label create "release-${{ env.LABEL }}" --color FF7F7E

0 comments on commit 5f97374

Please sign in to comment.