mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-21 04:43:41 +01:00
feat(ci): auto bump palen1x
This commit is contained in:
1 parent
15d13529a8
commit
97138e24de
2 files changed
+24
-5
No files matched your search
@@ -21,7 +21,7 @@ jobs:
|
||||
|
||||
- name: Download debs from tag
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
GH_TOKEN: ${{ env.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release download "${{ env.TAG }}" --pattern "palera1n-iphoneos-arm*.deb"
|
||||
|
||||
@@ -46,9 +46,28 @@ jobs:
|
||||
|
||||
cd upload
|
||||
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.name "$USERNAME"
|
||||
git config user.email "[email protected]"
|
||||
|
||||
git add .
|
||||
git commit -m "Update palera1n for ${{ env.TAG }}" || exit 0
|
||||
git push https://$USERNAME:[email protected]/$GH_REPO.git
|
||||
|
||||
- name: Bump palen1x
|
||||
if: github.repository == 'palera1n/palera1n'
|
||||
env:
|
||||
USERNAME: GitHub-Actions
|
||||
API_TOKEN: ${{ secrets.BUILD_GITHUB_TOKEN }}
|
||||
GH_REPO: palera1n/palen1x
|
||||
run: |
|
||||
git clone https://$USERNAME:[email protected]/$GH_REPO.git tag
|
||||
cd tag
|
||||
|
||||
git config --global user.name "$USERNAME"
|
||||
git config --global user.email "[email protected]"
|
||||
|
||||
git commit --allow-empty -m "bump to ${{ env.TAG }}"
|
||||
git push https://$USERNAME:[email protected]/$GH_REPO.git Alpine
|
||||
|
||||
git tag "${{ env.TAG }}"
|
||||
git push https://$USERNAME:[email protected]/$GH_REPO.git "${{ env.TAG }}"
|
||||
Reference in new issue
Block a user