Skip to content

fix: 🐛 log组件更新,详见描述 #59

fix: 🐛 log组件更新,详见描述

fix: 🐛 log组件更新,详见描述 #59

name: Build documentation and pack
on:
workflow_dispatch:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
pack:
name: Generate pack
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch tags
if: ${{ github.event_name == 'release' }}
run: |
git fetch --tags --force
- name: get submodules
run: |
git submodule update --init
- uses: Open-CMSIS-Pack/gen-pack-action@main
with:
doxygen-version: 1.9.5
packchk-version: 1.3.96
gen-pack-script: ./gen_pack.sh
gen-pack-output: ./output
- name: Copy pack to cmsis-pack directory
run: |
mkdir -p cmsis-pack
cp -v ./output/*.pack cmsis-pack/ || true
- name: Commit pack to repository
if: github.event_name == 'push' && github.ref == 'refs/heads/CMSIS-Pack'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add cmsis-pack/*.pack
if ! git diff --staged --quiet; then
git commit -m "chore: Update CMSIS pack files [skip ci]"
git push origin HEAD:CMSIS-Pack
fi