This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Nettoyer les déploiements de versions de test obsolètes #1970
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nettoyer les déploiements de versions de test obsolètes | |
on: delete | |
jobs: | |
cleanup: | |
name: Clean up | |
runs-on: ubuntu-latest | |
if: ${{ github.event.ref_type == 'branch' }} | |
steps: | |
- name: Send event to trigger cleanup workflow | |
run: | | |
curl -XPOST https://api.github.com/repos/Delegation-numerique-en-sante/mesconseilscovid-infra/dispatches \ | |
-H "Authorization: token ${{ secrets.PAT_TOKEN }}" \ | |
-H "Accept: application/vnd.github.everest-preview+json" \ | |
-H "Content-Type: application/json" \ | |
--data '{"event_type": "cleanup", "client_payload": {"branch": "${{ github.event.ref }}"}}' |