Skip to content

Add mspm0c1105/6 (#11) #39

Add mspm0c1105/6 (#11)

Add mspm0c1105/6 (#11) #39

Workflow file for this run

name: Generate
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout generated repo
uses: actions/checkout@v4
with:
repository: mspm0-rs/mspm0-data-generated
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
ref: master
path: mspm0-data-generated
fetch-depth: 0
- name: Generate
run: |
./d ci
- name: Copy generated code
run: |
rm -rf ./mspm0-data-generated/data
rm -rf ./mspm0-data-generated/mspm0-metapac
cp -fr ./build/data ./mspm0-data-generated/data
cp -fr ./build/mspm0-metapac ./mspm0-data-generated/mspm0-metapac
- name: Add and commit new code
run: |
cd ./mspm0-data-generated
git config user.name "mspm0-ci"
git config user.email ""
git add data mspm0-metapac
git commit -m "Generated from mspm0-data ${{ github.sha }}" --allow-empty
git tag -a mspm0-data-${{ github.sha }} -m "Generated from mspm0-data ${{ github.sha }}"
git push --follow-tags