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
-16
View File
@@ -6,28 +6,12 @@ on:
description: 'The version to be released please respect: major.minor.patch, major.minor.patch-preview or major.minor.patch-preview<number> format. example: 7.4.3, 7.4.3-preview or 7.4.3-preview1'
required: true
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.GH_BOT_ACCESS_TOKEN != '') || '' }}" ]; then
echo "has-secrets=1" >> "$GITHUB_OUTPUT"
fi
call-remove-milestone:
needs: config
if: needs.config.outputs.has-secrets
uses: grafana/grafana/.github/workflows/remove-milestone.yml@main
with:
version_call: ${{ github.event.inputs.version_input }}
secrets: inherit
call-close-milestone:
if: needs.config.outputs.has-secrets
uses: grafana/grafana/.github/workflows/close-milestone.yml@main
with:
version_call: ${{ github.event.inputs.version_input }}