This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
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
1 parent
cc5d6b7
commit 26fee76
Showing
1 changed file
with
11 additions
and
2 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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.AUTOMERGE_TOKEN }} | ||
- name: Figure out branch | ||
id: figure-out-branch | ||
run: .github/workflows/figure-out-branch.sh '${{ matrix.branch }}' | ||
|
@@ -42,14 +42,23 @@ jobs: | |
SDK_NAME: ${{ steps.setup-flatcar-sdk.outputs.SDK_NAME }} | ||
run: .github/workflows/cacerts-apply-patch.sh | ||
- name: Create pull request | ||
id: cpr | ||
if: (steps.figure-out-branch.outputs.SKIP == 0) && (steps.apply-patch.outputs.UPDATE_NEEDED == 1) | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.AUTOMERGE_TOKEN }} | ||
base: ${{ steps.figure-out-branch.outputs.BRANCH }} | ||
branch: ${{ steps.apply-patch.outputs.BRANCH_NAME }} | ||
delete-branch: true | ||
author: Flatcar Buildbot <[email protected]> | ||
committer: Flatcar Buildbot <[email protected]> | ||
title: Upgrade ca-certificates in ${{ steps.figure-out-branch.outputs.BRANCH }} from ${{ steps.apply-patch.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.NSS_VERSION }} | ||
body: Subject says it all. | ||
labels: ${{ steps.figure-out-branch.outputs.LABEL }} | ||
- name: Enable Pull Request Automerge | ||
if: steps.cpr.outputs.pull-request-operation == 'created' | ||
uses: peter-evans/enable-pull-request-automerge@v2 | ||
with: | ||
token: ${{ secrets.AUTOMERGE_TOKEN }} | ||
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} | ||
merge-method: merge |