Skip to content

Commit

Permalink
chore: fix PR title for prod release
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Nov 13, 2024
1 parent f30989c commit bbc3b16
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,18 @@ jobs:
run: |
git fetch origin staging:staging
git reset --hard staging
- name: Get latest tag merged into staging
id: get_latest_tag
run: |
git checkout origin/staging
latest_tag=$(git describe --tags $(git rev-list --tags --merged origin/staging --max-count=1))
echo "tag=$latest_tag" >> $GITHUB_OUTPUT
git checkout production
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7.0.5
with:
token: ${{ secrets.SGTPOOKI_PAT }}
branch: production-release
title: 'chore: Point production to release ${{ steps.get_latest_tag.outputs.tag }}'
body: 'This PR points the production branch to release ${{ steps.get_latest_tag.outputs.tag }}.'
title: 'chore: Point production to ${{ steps.get_latest_tag.outputs.tag }}'
body: 'This PR points the production branch to release ${{ steps.get_latest_tag.outputs.tag }}, which is the latest tag deployed to staging.'

0 comments on commit bbc3b16

Please sign in to comment.