fix a step to activate proper gpg agent behavior #60
Workflow file for this run
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: Delete env for branch | |
on: | |
# Dès qu'une pull request est fermée on déclenche le workflow | |
pull_request: | |
types: [closed] | |
jobs: | |
delete_env: | |
name: Delete site in Netlify for the branch | |
runs-on: ubuntu-latest | |
steps: | |
# Suppression du site correspondant au nom de la branche ciblée par la PR | |
- name: Delete site for branch | |
run: | | |
SITE_ID=$(curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer ${{ secrets.NETLIFY_AUTH_TOKEN }}" https://api.netlify.com/api/v1/sites?name=${{github.head_ref}} | jq --raw-output '.[0].id') | |
curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer ${{ secrets.NETLIFY_AUTH_TOKEN }}" https://api.netlify.com/api/v1/sites/$SITE_ID |