-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
with: | ||
|