mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
0f2b02d006
* feat(ci): Add lint and try `dnf in` in autobuild
This also renames some workflows.
* feat: test out the workflow by messing up uxplay
* chore(ci): simplify mg notify part
* try?
* guess it's time to revert mg
* fix fail hdl
* Revert "feat: test out the workflow by messing up uxplay"
This reverts commit c6d56ac9f2.
* yeah let's try using seto instead (faster!)
* fix newline stuff again
* ok let's try this too
* escape the strings
* fix dnf and some formatting
* fix?
* confusion
* more quote fixing
* a
* idk?
* aaaa
* revert seto-fonts
* more opts?
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: Update
|
|
on:
|
|
schedule:
|
|
- cron: "*/30 * * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
autoupdate:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/terrapkg/builder:f38
|
|
options: --cap-add=SYS_ADMIN --privileged
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }}
|
|
|
|
- name: Install SSH signing key
|
|
run: |
|
|
mkdir -p ${{ runner.temp }}
|
|
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key
|
|
chmod 0700 ${{ runner.temp }}/signing_key
|
|
|
|
- name: Run Update
|
|
run: anda update -vv
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
RUST_BACKTRACE: full
|
|
|
|
- name: Save
|
|
run: |
|
|
git config --global --add safe.directory "*"
|
|
if [[ `git status --porcelain` ]]; then
|
|
git config user.name "Raboneko"
|
|
git config user.email "raboneko@fyralabs.com"
|
|
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"
|
|
f37 () {
|
|
git format-patch HEAD^
|
|
git checkout f37
|
|
git apply *.patch || true
|
|
git add *
|
|
git commit -S -a -m "$msg"
|
|
}
|
|
f37 || true
|
|
git push -u origin --all
|
|
fi
|