Update Image List #825
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Image List | |
| on: | |
| schedule: [{cron: "0 0 * * *"}] | |
| workflow_dispatch: | |
| jobs: | |
| image-list: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Update image_list.json | |
| id: latest | |
| run: | | |
| curl -L -H 'Accept: application/vnd.github+json' -H 'Authorization: Bearer ${{ secrets.PACKAGE_LIST_TOKEN }}' -H 'X-GitHub-Api-Version: 2022-11-28' 'https://api.github.com/orgs/ublue-os/packages?package_type=container&page=1&per_page=100' > /tmp/image_list1.json | |
| curl -L -H 'Accept: application/vnd.github+json' -H 'Authorization: Bearer ${{ secrets.PACKAGE_LIST_TOKEN }}' -H 'X-GitHub-Api-Version: 2022-11-28' 'https://api.github.com/orgs/ublue-os/packages?package_type=container&page=2&per_page=100' > /tmp/image_list2.json | |
| jq -s . /tmp/image_list*.json > image_list.json | |
| - name: Write image_list.json to Repostiory | |
| uses: test-room-7/action-update-file@6b8249d09d5926fbae288c0bb640757f09ec7ce0 # v2 | |
| with: | |
| file-path: image_list.json | |
| commit-msg: Image List Update | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |