ci: run the bump workflow on Gitea Actions
The tap moved to git.trivk.dev. Gitea Runner has no parallel steps, so the two bumps run one after the other. The scripts ask api.github.com with curl instead of gh, which needs a GitHub token the Gitea job does not have; two unauthenticated requests per run stay far under the limit. The README now taps with the git.trivk.dev URL.
This commit is contained in:
1 parent
a573d6948f
commit
07026e2c7a
4 files changed
+17
-16
No files matched your search
@@ -11,8 +11,6 @@ permissions:
|
||||
jobs:
|
||||
bump:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
@@ -20,20 +18,20 @@ jobs:
|
||||
echo "BUMP_DIR=$RUNNER_TEMP/bumps" >> "$GITHUB_ENV"
|
||||
mkdir -p "$RUNNER_TEMP/bumps"
|
||||
|
||||
# Each script edits its own files and leaves committing to the next step,
|
||||
# so the parallel steps never race for the git index.
|
||||
- parallel:
|
||||
- name: Bump netbird
|
||||
run: .github/scripts/bump-netbird.sh
|
||||
# Each script edits its own files and leaves committing to the last step, so every bump
|
||||
# gets its own commit. The scripts ask api.github.com without a token: two requests per run
|
||||
# is far below the 60 an hour GitHub allows per IP.
|
||||
- name: Bump netbird
|
||||
run: .github/scripts/bump-netbird.sh
|
||||
|
||||
- name: Bump zshellcheck
|
||||
run: .github/scripts/bump-zshellcheck.sh
|
||||
- name: Bump zshellcheck
|
||||
run: .github/scripts/bump-zshellcheck.sh
|
||||
|
||||
- name: Commit and push
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config user.name "gitea-actions"
|
||||
git config user.email "gitea-actions@git.trivk.dev"
|
||||
shopt -s nullglob
|
||||
for record in "$BUMP_DIR"/*; do
|
||||
mapfile -t lines < "$record"
|
||||
|
||||
Reference in new issue
Block a user