[CI/CD] Added trigger for kicad_auto/_test clean

This commit is contained in:
Salvador E. Tropea 2023-03-17 10:58:17 -03:00
parent 3a5519c0e5
commit d617e290c5
1 changed files with 12 additions and 1 deletions

View File

@ -6,7 +6,7 @@ on:
workflow_dispatch
jobs:
push_to_registry_ki5:
push_to_registry:
strategy:
matrix:
ki_release: [dev_image_k5, dev_image_k6, dev_image_k7, dev_image_k5f, dev_image_k6f, dev_image_k7f]
@ -40,3 +40,14 @@ jobs:
run: |
cd tools/${{ matrix.ki_release }}
./build.sh
clean_images:
name: Triggers the kicad_auto and kicad_auto_test clean
runs-on: ubuntu-latest
needs: push_to_registry
if: github.ref == 'refs/heads/dev'
steps:
- name: Trigger garbage collector
run: |
curl -X POST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/INTI-CMNB/kicad_auto/dispatches --data '{"event_type": "clean"}'
curl -X POST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/INTI-CMNB/kicad_auto_test/dispatches --data '{"event_type": "clean"}'