mirror of
https://github.com/iptv-org/iptv
synced 2026-09-10 13:57:12 -04:00
Update validate_issue.yml
This commit is contained in:
@@ -43,6 +43,19 @@ jobs:
|
|||||||
--body "$RAW_BODY" \
|
--body "$RAW_BODY" \
|
||||||
--labels "$LABEL_STRING"
|
--labels "$LABEL_STRING"
|
||||||
|
|
||||||
|
- name: Handle valid request
|
||||||
|
if: success()
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ steps.create-app-token.outputs.token }}
|
||||||
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||||
|
run: |
|
||||||
|
if [ "${{ env.ACT }}" = "true" ]; then
|
||||||
|
echo "[MOCK] Add label: check:passed"
|
||||||
|
echo "[MOCK] Remove label if exists: check:failed"
|
||||||
|
else
|
||||||
|
gh issue edit $ISSUE_NUMBER --add-label "check:passed" --remove-label "check:failed"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Handle invalid request
|
- name: Handle invalid request
|
||||||
if: failure() && steps.validator.outcome == 'failure'
|
if: failure() && steps.validator.outcome == 'failure'
|
||||||
env:
|
env:
|
||||||
@@ -54,6 +67,9 @@ jobs:
|
|||||||
if [ "${{ env.ACT }}" = "true" ]; then
|
if [ "${{ env.ACT }}" = "true" ]; then
|
||||||
echo "[MOCK] Post comment:"
|
echo "[MOCK] Post comment:"
|
||||||
echo "$COMMENT_MSG"
|
echo "$COMMENT_MSG"
|
||||||
|
echo "[MOCK] Add label: check:failed"
|
||||||
|
echo "[MOCK] Remove label if exists: check:passed"
|
||||||
else
|
else
|
||||||
gh issue comment $ISSUE_NUMBER --body "$COMMENT_MSG"
|
gh issue comment $ISSUE_NUMBER --body "$COMMENT_MSG"
|
||||||
|
gh issue edit $ISSUE_NUMBER --add-label "check:failed" --remove-label "check:passed"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user