Add license comments for code files #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Status Check Runner | |
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
checkif: | |
runs-on: ubuntu-latest | |
name: Check Comment Content | |
outputs: | |
shouldc: ${{ steps.checkc.outputs.shouldc }} | |
steps: | |
- name: Check | |
id: checkc | |
run: | | |
if [[ "${{ github.event.comment.body }}" != *"!Run check"* ]]; then | |
echo "The comment content does not contain the specified text. Cancelling workflow." | |
echo "::set-output name=shouldc::false" | |
else | |
echo "The comment content contains the specified text. Continuing with further actions." | |
echo "::set-output name=shouldc::true" | |
fi | |
call-check-workflow: | |
name: Run | |
needs: checkif | |
if: ${{ needs.checkif.outputs.shouldc == 'true' }} | |
uses: Darock-Studio/Darock-Bili/.github/workflows/status-check.yml@main | |