|
1 | 1 | name: Build documentation and pack |
2 | 2 | on: |
3 | | - workflow_dispatch: |
4 | | - push: |
5 | | - branches: [ develop ] |
6 | | - pull_request: |
7 | | - branches: [ develop ] |
8 | | - release: |
9 | | - types: [published] |
| 3 | + workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: [develop] |
| 6 | + pull_request: |
| 7 | + branches: [develop] |
10 | 8 | jobs: |
11 | | - pack: |
12 | | - name: Generate pack |
13 | | - runs-on: ubuntu-22.04 |
14 | | - permissions: |
15 | | - contents: write |
16 | | - steps: |
17 | | - - uses: actions/checkout@v3 |
18 | | - with: |
19 | | - fetch-depth: 0 |
20 | | - token: ${{ secrets.GITHUB_TOKEN }} |
| 9 | + pack: |
| 10 | + name: Generate pack |
| 11 | + runs-on: ubuntu-22.04 |
| 12 | + permissions: |
| 13 | + contents: write |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v3 |
| 16 | + with: |
| 17 | + fetch-depth: 0 |
| 18 | + token: ${{ secrets.GITHUB_TOKEN }} |
21 | 19 |
|
22 | | - - name: Fetch tags |
23 | | - if: ${{ github.event_name == 'release' }} |
24 | | - run: | |
25 | | - git fetch --tags --force |
| 20 | + - name: Fetch tags |
| 21 | + if: ${{ github.event_name == 'release' }} |
| 22 | + run: | |
| 23 | + git fetch --tags --force |
26 | 24 |
|
27 | | - - name: get submodules |
28 | | - run: | |
29 | | - git submodule update --init |
| 25 | + - name: get submodules |
| 26 | + run: | |
| 27 | + git submodule update --init |
30 | 28 |
|
31 | | - - uses: Open-CMSIS-Pack/gen-pack-action@main |
32 | | - with: |
33 | | - doxygen-version: 1.9.5 |
34 | | - packchk-version: 1.3.96 |
35 | | - gen-pack-script: ./gen_pack.sh |
36 | | - gen-pack-output: ./output |
| 29 | + - uses: Open-CMSIS-Pack/gen-pack-action@main |
| 30 | + with: |
| 31 | + doxygen-version: 1.9.5 |
| 32 | + packchk-version: 1.3.96 |
| 33 | + gen-pack-script: ./gen_pack.sh |
| 34 | + gen-pack-output: ./output |
37 | 35 |
|
38 | | - - name: Copy pack to cmsis-pack directory |
39 | | - run: | |
40 | | - mkdir -p cmsis-pack |
41 | | - cp -v ./output/*.pack cmsis-pack/ || true |
| 36 | + - name: Copy pack to cmsis-pack directory |
| 37 | + run: | |
| 38 | + mkdir -p cmsis-pack |
| 39 | + cp -v ./output/*.pack cmsis-pack/ || true |
42 | 40 |
|
43 | | - - name: Commit pack to repository |
44 | | - if: github.event_name == 'push' && github.ref == 'refs/heads/CMSIS-Pack' |
45 | | - run: | |
46 | | - git config user.name "github-actions[bot]" |
47 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
48 | | - git add cmsis-pack/*.pack |
49 | | - if ! git diff --staged --quiet; then |
50 | | - git commit -m "chore: Update CMSIS pack files [skip ci]" |
51 | | - git push origin HEAD:CMSIS-Pack |
52 | | - fi |
| 41 | + - name: Commit pack to repository |
| 42 | + if: github.event_name == 'push' && github.ref == 'refs/heads/CMSIS-Pack' |
| 43 | + run: | |
| 44 | + git config user.name "github-actions[bot]" |
| 45 | + git config user.email "github-actions[bot]@users.noreply.github.com" |
| 46 | + git add cmsis-pack/*.pack |
| 47 | + if ! git diff --staged --quiet; then |
| 48 | + git commit -m "chore: Update CMSIS pack files [skip ci]" |
| 49 | + git push origin HEAD:CMSIS-Pack |
| 50 | + fi |
0 commit comments