Skip to content

Commit

Permalink
chore: fix prod release pr
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Nov 13, 2024
1 parent bbc3b16 commit eff95ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,18 @@ jobs:
with:
token: ${{ secrets.SGTPOOKI_PAT }}
ref: production
- name: Ensure production branch points to latest staging
run: |
git fetch origin staging:staging
git reset --hard staging
- name: Fetch all tags
run: git fetch --tags
- 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: Ensure production branch points to latest staging
run: |
git fetch origin staging:staging
git reset --hard staging
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7.0.5
with:
Expand Down

0 comments on commit eff95ae

Please sign in to comment.