@cryptotaxi247 / netdata-1 / commits / 748f95938

ci: replace exit 1 with conditional skip in website update workflow (#19227)

* ci: replace exit 1 with conditional skip in website update workflow * simplify

Ilya Mashchenko committed Dec 16, 2024 at 16:34 UTC 748f95938e7fce4c18c890097426cecd3aa46011
1 file changed +3 -3
.github/workflows/update-website.yml
+3 -3
@@ -17,11 +17,11 @@ jobs:
17 run: |
18 LABELS='${{ toJSON(github.event.pull_request.labels) }}'
19 echo "Labels: $LABELS"
20 - if [[ ! "$LABELS" =~ "integrations-update" ]]; then
21 - echo "This PR does not have the required label."
22 - exit 1
20 + if [[ "$LABELS" =~ "integrations-update" ]]; then
21 + echo "has_label=true" >> $GITHUB_OUTPUT
22 fi
23 - name: Trigger netdata/website update-integrations workflow
24 + if: steps.label-check.outputs.has_label == 'true'
25 uses: benc-uk/workflow-dispatch@v1
26 with:
27 token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}