Revert "Only run workflows if they might be able to work" (#72506)

Revert "Only run workflows if they might be able to work (#63164)"

This reverts commit 234b5c8c21.
This commit is contained in:
Armand Grillet
2023-07-28 13:21:34 +02:00
committed by GitHub
parent 261045d182
commit dc486e0ca4
21 changed files with 16 additions and 185 deletions
-15
View File
@@ -5,22 +5,7 @@ on:
types: [labeled]
jobs:
config:
runs-on: "ubuntu-latest"
outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }}
steps:
- name: "Check for secrets"
id: check
shell: bash
run: |
if [ -n "${{ (secrets.SLACK_WEBHOOK_URL != '') || '' }}" ]; then
echo "has-secrets=1" >> "$GITHUB_OUTPUT"
fi
notify:
needs: config
if: needs.config.outputs.has-secrets
runs-on: ubuntu-latest
steps:
- name: "Download teams.yml to know which label is for which team"