|
1 | | -name: Update distro tables |
| 1 | +name: Update package table |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | schedule: |
|
8 | 8 | jobs: |
9 | 9 | build: |
10 | 10 | runs-on: ubuntu-latest |
11 | | - if: github.ref == 'refs/heads/master' |
| 11 | + if: github.ref == 'refs/heads/main' |
| 12 | + # The push step writes the regenerated tables back to the repository |
| 13 | + permissions: |
| 14 | + contents: write |
12 | 15 | steps: |
13 | | - - name: Checkout robostack.github.io |
14 | | - uses: actions/checkout@v4 |
15 | | - - uses: prefix-dev/setup-pixi@v0.10.0 |
16 | | - # foxy and galactic are end-of-life; public/data/{foxy,galactic}.json are |
17 | | - # committed snapshots and deliberately not regenerated here. |
18 | | - - name: Create table noetic |
19 | | - run: | |
20 | | - pixi run compare-completeness noetic robostack-noetic |
21 | | - - name: Create table humble |
22 | | - run: | |
23 | | - pixi run compare-completeness humble robostack-humble |
24 | | - - name: Create table jazzy |
25 | | - run: | |
26 | | - pixi run compare-completeness jazzy robostack-jazzy |
27 | | - - name: Create table kilted |
28 | | - run: | |
29 | | - pixi run compare-completeness kilted robostack-kilted |
30 | | - - name: Create table rolling |
31 | | - run: | |
32 | | - pixi run compare-completeness rolling https://prefix.dev/robostack-rolling |
33 | | - - name: Create table lyrical |
34 | | - run: | |
35 | | - pixi run compare-completeness lyrical https://prefix.dev/robostack-lyrical |
36 | | - - name: Commit changes |
37 | | - id: commit |
38 | | - run: | |
39 | | - git config --local user.email "action@github.com" |
40 | | - git config --local user.name "GitHub Action" |
41 | | - git add public/data/noetic.json |
42 | | - git add public/data/humble.json |
43 | | - git add public/data/jazzy.json |
44 | | - git add public/data/kilted.json |
45 | | - git add public/data/rolling.json |
46 | | - git add public/data/lyrical.json |
47 | | - git commit -m "Update tables" |
48 | | - continue-on-error: true |
49 | | - - name: Push changes |
50 | | - if: steps.commit.outcome == 'success' |
51 | | - uses: ad-m/github-push-action@master |
52 | | - with: |
53 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
54 | | - branch: ${{ github.ref }} |
| 16 | + - name: Checkout robostack.github.io |
| 17 | + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 |
| 18 | + with: |
| 19 | + persist-credentials: false |
| 20 | + - uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0 |
| 21 | + # foxy and galactic are end-of-life; public/data/{foxy,galactic}.json are |
| 22 | + # committed snapshots and deliberately not regenerated here. |
| 23 | + - name: Create table noetic |
| 24 | + run: | |
| 25 | + pixi run compare-completeness noetic robostack-noetic |
| 26 | + - name: Create table humble |
| 27 | + run: | |
| 28 | + pixi run compare-completeness humble robostack-humble |
| 29 | + - name: Create table jazzy |
| 30 | + run: | |
| 31 | + pixi run compare-completeness jazzy robostack-jazzy |
| 32 | + - name: Create table kilted |
| 33 | + run: | |
| 34 | + pixi run compare-completeness kilted robostack-kilted |
| 35 | + - name: Create table rolling |
| 36 | + run: | |
| 37 | + pixi run compare-completeness rolling https://prefix.dev/robostack-rolling |
| 38 | + - name: Create table lyrical |
| 39 | + run: | |
| 40 | + pixi run compare-completeness lyrical https://prefix.dev/robostack-lyrical |
| 41 | + - name: Commit changes |
| 42 | + id: commit |
| 43 | + run: | |
| 44 | + git config --local user.email "action@github.com" |
| 45 | + git config --local user.name "GitHub Action" |
| 46 | + git add public/data/noetic.json |
| 47 | + git add public/data/humble.json |
| 48 | + git add public/data/jazzy.json |
| 49 | + git add public/data/kilted.json |
| 50 | + git add public/data/rolling.json |
| 51 | + git add public/data/lyrical.json |
| 52 | + git commit -m "Update tables" |
| 53 | + continue-on-error: true |
| 54 | + - name: Push changes |
| 55 | + if: steps.commit.outcome == 'success' |
| 56 | + uses: ad-m/github-push-action@881a6320fdb16eb5318c5054f31c218aec2b324c # master |
| 57 | + with: |
| 58 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 59 | + branch: ${{ github.ref }} |
0 commit comments