fix(ci): sync update-comps update-nightly

This commit is contained in:
windowsboy111
2023-04-22 11:46:10 +08:00
parent 17e328d3a8
commit b9087fe2fb
3 changed files with 16 additions and 2 deletions
+2 -1
View File
@@ -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
+5 -1
View File
@@ -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
+9
View File
@@ -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