-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] As soon as a PR is created or updated, create pending (yellow) c…
…ommit statuses for all Buildbot jobs
- Loading branch information
1 parent
cb30aa7
commit ccb4bb1
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# This is just a short-term solution until we have migrated all of CI to Buildkite. | ||
# | ||
# TODO: delete this file once we have migrated all of CI to Buildkite. | ||
# | ||
# TODO: disable GitHub Actions on the `JuliaLang/julia` repository once we have migrated all | ||
# of CI to Buildkite. | ||
|
||
name: Pending | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'release-*' | ||
pull_request: | ||
branches: | ||
- 'master' | ||
- 'release-*' | ||
|
||
permissions: | ||
statuses: write | ||
actions: none | ||
checks: none | ||
contents: none | ||
deployments: none | ||
issues: none | ||
discussions: none | ||
packages: none | ||
pull-requests: none | ||
repository-projects: none | ||
security-events: none | ||
|
||
jobs: | ||
pending: | ||
name: pending | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- run: echo "SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV | ||
if: github.event_name == 'pull_request' | ||
|
||
- run: echo "SHA=${{ env.GITHUB_SHA }}" >> $GITHUB_ENV | ||
if: github.event_name != 'pull_request' | ||
|
||
- run: echo "The SHA is ${{ env.SHA }}" | ||
|
||
- run: | | ||
declare -a context_list=( | ||
"buildbot/package_freebsd64" | ||
"buildbot/package_linux32" | ||
"buildbot/package_linux64" | ||
"buildbot/package_linuxaarch64" | ||
"buildbot/package_linuxarmv7l" | ||
"buildbot/package_linuxppc64le" | ||
"buildbot/package_macos64" | ||
"buildbot/package_macosaarch64" | ||
"buildbot/package_musl64" | ||
"buildbot/package_win32" | ||
"buildbot/package_win64" | ||
"buildbot/tester_freebsd64" | ||
"buildbot/tester_linux32" | ||
"buildbot/tester_linux64" | ||
"buildbot/tester_linuxaarch64" | ||
"buildbot/tester_linuxarmv7l" | ||
"buildbot/tester_linuxppc64le" | ||
"buildbot/tester_macos64" | ||
"buildbot/tester_macosaarch64" | ||
"buildbot/tester_musl64" | ||
"buildbot/tester_win32" | ||
"buildbot/tester_win64" | ||
) | ||
for context in "${context_list[@]}" | ||
do | ||
curl \ | ||
-X POST \ | ||
-H "Authorization: token $GITHUB_TOKEN" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-d "{\"state\": \"$STATE\", \"context\": \"$context\"}" \ | ||
https://api.github.com/repos/JuliaLang/julia/statuses/$SHA | ||
done | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SHA: ${{ env.SHA }} | ||
STATE: "pending" |