-
Notifications
You must be signed in to change notification settings - Fork 0
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
2 changed files
with
20 additions
and
10 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 |
---|---|---|
@@ -1,22 +1,32 @@ | ||
name: Create production promotion pull request | ||
name: Update Main from Staging | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
workflow_dispatch: # Allows manual triggering | ||
workflow_dispatch: | ||
|
||
jobs: | ||
productionPromotion: | ||
create_pull_request: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout staging branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: staging | ||
- name: Reset promotion branch | ||
run: | | ||
git checkout -- Dockerfile .github/workflows/* | ||
git reset HEAD Dockerfile .github/workflows/* | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v7 | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
branch: main | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
base: main | ||
branch: update-main-from-staging | ||
title: 'Update main from staging' | ||
body: | | ||
This pull request updates the `main` branch with the latest changes from the `staging` branch. | ||
labels: update | ||
assignees: your-github-username | ||
# Ensure the following options are set to avoid auto-merging | ||
delete-branch: false | ||
|
File renamed without changes.