50
50
rerun-failed-buildkite-jobs :
51
51
name : Rerun Failed Buildkite Jobs
52
52
runs-on : ubuntu-latest
53
- if : (github.repository == 'DilumAluthge /julia') && ((github.event_name == 'pull_request_target' && github.event.action == 'reopened') || (github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.body == '/buildkite rerun failed'))
53
+ if : (github.repository == 'JuliaLang /julia') && ((github.event_name == 'pull_request_target' && github.event.action == 'reopened') || (github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.body == '/buildkite rerun failed'))
54
54
steps :
55
+ # For security reasons, we do not checkout any code in this workflow.
55
56
- name : Check organization membership
56
57
env :
57
58
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60
61
if [[ "${{ github.event.action }}" == "reopened" ]]; then
61
62
echo "This is a \"reopened\" event, so we do not need to check the user's organization membership."
62
63
echo "GOOD_TO_PROCEED=yes" >> ${GITHUB_ENV:?}
64
+ echo "PULL_REQUEST_NUMBER=${{ github.event.number }}" >> ${GITHUB_ENV:?}
63
65
else
64
66
echo "ERROR: The github.event_name is \"pull_request_target\", but the github.event.action is not \"reopened\"."
65
67
exit 1
@@ -71,17 +73,20 @@ jobs:
71
73
if [[ "${USER_IS_ORGANIZATION_MEMBER:?}" == "true" ]]; then
72
74
echo "The \"${{ github.event.sender.login }}\" user is a public member of the JuliaLang organization."
73
75
echo "GOOD_TO_PROCEED=yes" >> ${GITHUB_ENV:?}
76
+ echo "PULL_REQUEST_NUMBER=${{ github.event.issue.number }}" >> ${GITHUB_ENV:?}
74
77
else
75
78
echo "ERROR: the \"${{ github.event.sender.login }}\" user is NOT a public member of the JuliaLang organization."
76
79
echo "If you are a member, please make sure that you have publicized your membership."
77
80
exit 1
78
81
fi
79
82
fi
80
- # For security reasons, we do not checkout any code in this workflow.
83
+ - run : |
84
+ echo "GOOD_TO_PROCEED: ${{ env.GOOD_TO_PROCEED }}"
85
+ echo "PULL_REQUEST_NUMBER: ${{ env.PULL_REQUEST_NUMBER }}"
81
86
- uses : JuliaLang/buildkite-rerun-failed@057f6f2d37aa29a57b7679fd2af0df1d9f9188b4
82
87
if : env.GOOD_TO_PROCEED == 'yes'
83
88
with :
84
89
buildkite_api_token : ${{ secrets.BUILDKITE_API_TOKEN_RETRY }}
85
90
buildkite_organization_slug : ' julialang'
86
91
buildkite_pipeline_slug : ' julia-master'
87
- pr_number : ${{github.event.number }}
92
+ pr_number : ${{ env.PULL_REQUEST_NUMBER }}
0 commit comments