-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto-backport: update init configuration
Based on all changes done in scylla-pkg, updating machine-image for recent auto-backport working version
- Loading branch information
1 parent
ad01b2a
commit 69ca65f
Showing
2 changed files
with
33 additions
and
28 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
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 |
---|---|---|
|
@@ -36,14 +36,18 @@ jobs: | |
ref: ${{ env.DEFAULT_BRANCH }} | ||
token: ${{ secrets.AUTO_BACKPORT_TOKEN }} | ||
fetch-depth: 0 # Fetch all history for all tags and branches | ||
- name: Set up Git identity | ||
run: | | ||
git config --global user.name "GitHub Action" | ||
git config --global user.email "[email protected]" | ||
- name: Install dependencies | ||
run: sudo apt-get install -y python3-github python3-git | ||
- name: Run python script | ||
if: github.event_name == 'push' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.AUTO_BACKPORT_TOKEN }} | ||
run: python .github/scripts/search_commits.py --commits ${{ github.event.before }}..${{ github.sha }} --repository ${{ github.repository }} --ref ${{ github.ref }} | ||
- name: Run auto-backport.py whe promotion completed | ||
- name: Run auto-backport.py when promotion completed | ||
if: github.event_name == 'push' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.AUTO_BACKPORT_TOKEN }} | ||
|
@@ -63,4 +67,4 @@ jobs: | |
if: github.event_name == 'pull_request_target' && steps.check_label.outputs.backport_label == 'true' && (github.event.pull_request.state == 'closed' && github.event.pull_request.merged == true) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.AUTO_BACKPORT_TOKEN }} | ||
run: python .github/scripts/auto-backport.py --repo ${{ github.repository }} --base-branch ${{ github.ref }} --pull-request ${{ github.event.pull_request.number }} --head-commit ${{ github.sha }} | ||
run: python .github/scripts/auto-backport.py --repo ${{ github.repository }} --base-branch ${{ github.ref }} --pull-request ${{ github.event.pull_request.number }} --head-commit ${{ github.event.pull_request.base.sha }} |