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 Nov 28, 2023
1 parent 26eb5b7 commit 0bc4a75
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/statuscheck-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,25 @@ jobs:
echo "The comment content contains the specified text. Continuing with further actions."
echo "::set-output name=shouldc::true"
fi
call-check-workflow:
name: Run
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 }}
env:
slink: ${{ github.event.issue.pull_request.url }}
steps:
- name: Get SHA
id: getsha
run: |
json_data=$(curl -s "$slink")
sha=$(echo "$json_data" | jq -r '.head.sha')
echo "psha=$sha" >> $GITHUB_OUTPUT
call-check-workflow:
name: Run
needs: get-head-sha
uses: Darock-Studio/Darock-Bili/.github/workflows/status-check.yml@main
with:
psha: ${{ github.event.issue.pull_request.url }}
psha: ${{ needs.get-head-sha.outputs.psha }}

0 comments on commit 0bc4a75

Please sign in to comment.