Skip to content

Commit

Permalink
Use a script to apply the strict patch (#453) (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos authored Jun 4, 2024
1 parent 17a6023 commit 3e1f9e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/strict-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,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'
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/strict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,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 }}
10 changes: 10 additions & 0 deletions build-scripts/patches/strict/apply
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"

0 comments on commit 3e1f9e8

Please sign in to comment.