Skip to content

Commit

Permalink
Use a script to apply the strict patch (#453)
Browse files Browse the repository at this point in the history
* use a script to apply the strict patch
  • Loading branch information
neoaggelos authored Jun 3, 2024
1 parent 4090947 commit 7e72ad9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/strict-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

permissions:
contents: read

jobs:
build:
name: Build
Expand All @@ -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'
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/strict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
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 7e72ad9

Please sign in to comment.