Skip to content

Commit

Permalink
Merge pull request #273 from ymaheshwari1/feat/release-label-workflow
Browse files Browse the repository at this point in the history
Improved: the release workflow to create a label using the tag on release
  • Loading branch information
ymaheshwari1 authored Mar 18, 2024
2 parents 9b5f091 + 5f97374 commit 07778b2
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 07778b2

Please sign in to comment.