Skip to content

Commit

Permalink
Update statuscheck-runner.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ authored Dec 9, 2023
1 parent a5bcbe8 commit c80946d
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/statuscheck-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
name: Check Comment Content
outputs:
shouldc: ${{ steps.checkc.outputs.shouldc }}
shouldtun: ${{ steps.checkc.outputs.shouldtun }}
shouldtui: ${{ steps.checkc.outputs.shouldtui }}
shouldta: ${{ steps.checkc.outputs.shouldta }}
steps:
- name: Check
id: checkc
Expand All @@ -22,10 +25,24 @@ jobs:
echo "The comment content contains the specified text. Continuing with further actions."
echo "::set-output name=shouldc::true"
fi
if [[ "${{ github.event.comment.body }}" != *"!Run unit test"* ]]; then
echo "::set-output name=shouldtun::false"
else
echo "::set-output name=shouldtun::true"
fi
if [[ "${{ github.event.comment.body }}" != *"!Run UI test"* ]]; then
echo "::set-output name=shouldtui::false"
else
echo "::set-output name=shouldtui::true"
fi
if [[ "${{ github.event.comment.body }}" != *"!Run test"* ]]; then
echo "::set-output name=shouldta::false"
else
echo "::set-output name=shouldta::true"
fi
get-head-sha:
name: Get Pull Request Head SHA
needs: checkif
if: ${{ needs.checkif.outputs.shouldc == 'true' }}
runs-on: ubuntu-latest
outputs:
psha: ${{ steps.getsha.outputs.psha }}
Expand All @@ -40,7 +57,10 @@ jobs:
echo "psha=$sha" >> $GITHUB_OUTPUT
call-check-workflow:
name: Call Check Overflow
needs: get-head-sha
needs:
- get-head-sha
- checkif
if: ${{ needs.checkif.output.shouldc == 'true' }}
permissions:
actions: write
runs-on: ubuntu-latest
Expand Down

0 comments on commit c80946d

Please sign in to comment.