Skip to content

Commit

Permalink
[skip ci] improve parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
oscrx committed Aug 7, 2023
1 parent 4e5ac56 commit 5d6998d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/workflow-dispatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ jobs:
echo "::set-output name=DEPLOYMENT_ID::$DEPLOYMENT_ID"
- name: Check if deployment ID was found
id: check-deployment
run: |
if [ -z "${{ steps.find-deployment.outputs.DEPLOYMENT_ID }}" ]; then
echo "No deployment found for ref: ${{ github.event.client_payload.ref }}"
exit 0
echo "::set-output name=DEPLOYMENT_FOUND::false"
else
echo "::set-output name=DEPLOYMENT_FOUND::true"
fi
- name: Update deployment status
if: ${{ steps.check-deployment.outputs.DEPLOYMENT_FOUND == 'true' }}
run: |
DEPLOYMENT_ID=${{ steps.find-deployment.outputs.DEPLOYMENT_ID }}
Expand Down

0 comments on commit 5d6998d

Please sign in to comment.