Une collection organisée de snippets de code pour accélérer votre développement. Parcourez, recherchez et copiez en un clic.
run: echo "Environnement: ${{ github.event.inputs.environment }}"
steps:
- name: Déployer
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: ./deploy.sh
if: contains(github.head_ref, 'feature')
if: startsWith(github.ref, 'refs/tags/')
run: echo "Commit déclencheur : ${{ github.sha }}"
run: curl -H "Authorization: Bearer ${{ secrets.API_TOKEN }}" https://api.example.com