mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-04 19:02:19 +00:00
fix(ci): sync update-comps update-nightly
This commit is contained in:
@@ -32,5 +32,6 @@ jobs:
|
||||
git config user.signingkey "${{ runner.temp }}/signing_key"
|
||||
- name: Apply patches and Push
|
||||
run: |
|
||||
git am -S --keep-cr --signoff <(curl https://github.com/terrapkg/packages/pull/${{ github.event.pull_request.number }}.patch)
|
||||
curl https://github.com/terrapkg/packages/pull/${{ github.event.pull_request.number }}.patch > pr.patch
|
||||
git am -S --keep-cr --signoff < pr.patch
|
||||
git push -u origin --all
|
||||
|
||||
@@ -17,9 +17,13 @@ jobs:
|
||||
image: ghcr.io/terrapkg/builder:main
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- id: get-branch
|
||||
uses: grandmasterdev/github-action-get-branch@latest
|
||||
- name: Push to subatomic
|
||||
run: |
|
||||
branch=${{steps.get-branch.outputs.branch-name}}
|
||||
ver=${branch/f/}
|
||||
subatomic-cli upload-comps \
|
||||
--server https://subatomic.fyralabs.com \
|
||||
--token ${{ secrets.SUBATOMIC_TOKEN }} \
|
||||
terra37 comps.xml
|
||||
"terra${ver}" comps.xml
|
||||
|
||||
@@ -38,5 +38,14 @@ jobs:
|
||||
git config user.signingkey "${{ runner.temp }}/signing_key"
|
||||
msg="bump(nightly): $(git status | grep modified | sed -r 's@.+/([^/]+)/[^/]+\n?@\1 @g' | tr -d '\n')"
|
||||
git commit -S -a -m "$msg"
|
||||
git format-patch HEAD^
|
||||
git checkout f38
|
||||
git apply *.patch || true
|
||||
git add anda
|
||||
git commit -S -a -m "$msg"
|
||||
git checkout f37
|
||||
git apply *.patch || true
|
||||
git add anda
|
||||
git commit -S -a -m "$msg"
|
||||
git push -u origin --all
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user