-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a script to apply the strict patch (#453)
* use a script to apply the strict patch
- Loading branch information
1 parent
4090947
commit 7e72ad9
Showing
3 changed files
with
13 additions
and
7 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
|
@@ -32,9 +32,7 @@ jobs: | |
sudo snap install snapcraft --classic | ||
- name: Apply strict patch | ||
run: | | ||
git config --global user.email [email protected] | ||
git config --global user.name k8s-bot | ||
git am ./build-scripts/patches/strict/*.patch | ||
./build-scripts/patches/strict/apply | ||
- name: Build snap | ||
run: | | ||
sg lxd -c 'snapcraft --use-lxd' | ||
|
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 |
---|---|---|
|
@@ -52,9 +52,7 @@ jobs: | |
- name: Apply strict patch | ||
run: | | ||
git checkout -b ${{ needs.prepare.outputs.strict }} | ||
git config --global user.email [email protected] | ||
git config --global user.name k8s-bot | ||
git am ./build-scripts/patches/strict/*.patch | ||
./build-scripts/patches/strict/apply | ||
- name: Push to ${{ needs.prepare.outputs.strict }} | ||
run: | | ||
git push origin --force ${{ needs.prepare.outputs.strict }} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash -xe | ||
|
||
DIR="$(realpath "$(dirname "${0}")")" | ||
|
||
# Configure git author | ||
git config user.email [email protected] | ||
git config user.name k8s-bot | ||
|
||
# Apply strict patch | ||
git am "${DIR}/0001-Strict-patch.patch" |