mirror of
https://github.com/openzim/zimit.git
synced 2025-12-31 04:23:15 +00:00
set up offliner definitions
This commit is contained in:
parent
8c471d9ee2
commit
5624cbf081
2 changed files with 1011 additions and 0 deletions
38
.github/workflows/update-zim-offliner-definition.yaml
vendored
Normal file
38
.github/workflows/update-zim-offliner-definition.yaml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
name: Update ZIMFarm Definitions
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "offliner-definition.json"
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
prepare-json:
|
||||
runs-on: ubuntu-24.04
|
||||
outputs:
|
||||
offliner_definition: ${{ steps.read-json.outputs.offliner_definition }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- id: read-json
|
||||
run: |
|
||||
if [ ! -f "offliner-definition.json" ]; then
|
||||
echo "File not found!" >&2
|
||||
exit 1
|
||||
fi
|
||||
json=$(jq -c . offliner-definition.json)
|
||||
echo "offliner_definition=$json" >> $GITHUB_OUTPUT
|
||||
call-workflow:
|
||||
needs: prepare-json
|
||||
uses: openzim/overview/.github/workflows/update-zimfarm-offliner-definition.yaml@main
|
||||
with:
|
||||
version: ${{ github.event_name == 'release' && github.event.release.tag_name || 'dev' }}
|
||||
offliner: zimit
|
||||
offliner_definition: ${{ needs.prepare-json.outputs.offliner_definition }}
|
||||
secrets:
|
||||
zimfarm_ci_secret: ${{ secrets.ZIMFARM_CI_SECRET }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue