Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Aug 29, 2024
1 parent 9ccadc8 commit 991b538
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/cleanup-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ jobs:
WORKFLOW_NAME="${{ github.event.workflow_run.name }}"
if [[ $EVENT == "pull_request" ]]; then
echo "xxxxx beging ...."
cat ${GITHUB_EVENT_PATH}
echo "xxxxx end"
pr_number=$(jq --raw-output .pull_requests[0].number < ${GITHUB_EVENT_PATH})
echo "xxxxx new PR NUMBER is ${pr_number}."
pr_number=$(jq --raw-output .workflow_run.pull_requests[0].number < ${GITHUB_EVENT_PATH})
echo "Clean up cache for PR ${pr_number}."
BRANCH=refs/pull/${pr_number}/merge
else
BRANCH=refs/heads/${{ github.event.workflow_run.head_branch }}
Expand Down

0 comments on commit 991b538

Please sign in to comment.