-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix copr vendor distribution Fixes a small typo in the COPR vendor distribution name, which was apparently case-sensitive and causing COPR imports to fail due to the plugin (especially DNF5) expecting "fedora" (lowercase) instead of "Fedora" (uppercase). Signed-off-by: madonuko <[email protected]> * feat(ci): update.yml and also upgrade to actions v4 (#34) --------- Signed-off-by: madonuko <[email protected]> Co-authored-by: Cappy Ishihara <[email protected]>
- Loading branch information
1 parent
ff97f9b
commit 3de2e08
Showing
3 changed files
with
57 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Update | ||
on: | ||
schedule: | ||
- cron: "0 * * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
autoupdate: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/terrapkg/builder:frawhide | ||
options: --cap-add=SYS_ADMIN --privileged | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }} | ||
|
||
- name: Install SSH signing key & Set up git repository | ||
run: | | ||
mkdir -p ${{ runner.temp }} | ||
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key | ||
chmod 0700 ${{ runner.temp }}/signing_key | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- name: Run Update | ||
run: anda update -vv | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RUST_BACKTRACE: full | ||
|
||
- name: Save | ||
run: | | ||
if [[ `git status --porcelain` ]]; then | ||
git config user.name "Raboneko" | ||
git config user.email "[email protected]" | ||
git config gpg.format "ssh" | ||
git config user.signingkey "${{ runner.temp }}/signing_key" | ||
msg="bump: $(git status | grep modified | sed -r 's@.+/([^/]+)/[^/]+\n?@\1 @g' | tr -d '\n')" | ||
git commit -S -a -m "$msg" | ||
copy_over () { | ||
git format-patch HEAD^ | ||
git checkout $1 | ||
git apply *.patch || true | ||
rm *.patch | ||
git add * | ||
git commit -S -a -m "$msg" | ||
} | ||
copy_over um39 || true | ||
copy_over um40 || true | ||
git push -u origin --all | ||
fi |
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