mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
d4e55ca086
(cherry picked from commit f4d9497805)
Signed-off-by: GildedRoach <GildedRoach@users.noreply.github.com>
59 lines
1.8 KiB
YAML
59 lines
1.8 KiB
YAML
name: Weekly Update
|
|
permissions:
|
|
contents: read
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * 0"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
autoupdate:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-22.04
|
|
container:
|
|
image: ghcr.io/terrapkg/builder:frawhide
|
|
options: --cap-add=SYS_ADMIN --privileged
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
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 Weekly Update
|
|
run: anda update --filters weekly=1
|
|
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 "raboneko@fyralabs.com"
|
|
git config gpg.format "ssh"
|
|
git config user.signingkey "${{ runner.temp }}/signing_key"
|
|
msg="bump(weekly): $(anda run andax/ci/update_commit_message.rhai)"
|
|
git commit -S -a -m "$msg"
|
|
git format-patch HEAD^
|
|
copy_over () {
|
|
git checkout $1
|
|
git apply *.patch || true
|
|
git add anda
|
|
git commit -S -a -m "$msg"
|
|
}
|
|
copy_over f44 || true
|
|
copy_over f43 || true
|
|
copy_over f42 || true
|
|
copy_over el10 || true
|
|
git push -u origin --all
|
|
fi
|