|
| 1 | +# This is just a short-term solution until we have migrated all of CI to Buildkite. |
| 2 | +# |
| 3 | +# TODO: delete this file once we have migrated all of CI to Buildkite. |
| 4 | +# |
| 5 | +# TODO: disable GitHub Actions on the `JuliaLang/julia` repository once we have migrated all |
| 6 | +# of CI to Buildkite. |
| 7 | + |
| 8 | +name: Pending |
| 9 | + |
| 10 | +on: |
| 11 | + push: |
| 12 | + branches: |
| 13 | + - 'master' |
| 14 | + - 'release-*' |
| 15 | + pull_request: |
| 16 | + branches: |
| 17 | + - 'master' |
| 18 | + - 'release-*' |
| 19 | + |
| 20 | +permissions: |
| 21 | + statuses: write |
| 22 | + actions: none |
| 23 | + checks: none |
| 24 | + contents: none |
| 25 | + deployments: none |
| 26 | + issues: none |
| 27 | + discussions: none |
| 28 | + packages: none |
| 29 | + pull-requests: none |
| 30 | + repository-projects: none |
| 31 | + security-events: none |
| 32 | + |
| 33 | +jobs: |
| 34 | + pending: |
| 35 | + name: pending |
| 36 | + runs-on: ubuntu-latest |
| 37 | + strategy: |
| 38 | + fail-fast: false |
| 39 | + steps: |
| 40 | + - run: echo "SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV |
| 41 | + if: github.event_name == 'pull_request' |
| 42 | + |
| 43 | + - run: echo "SHA=${{ env.GITHUB_SHA }}" >> $GITHUB_ENV |
| 44 | + if: github.event_name != 'pull_request' |
| 45 | + |
| 46 | + run: echo "The SHA is $SHA" |
| 47 | + env: |
| 48 | + SHA: ${{ env.SHA }} |
| 49 | + |
| 50 | + - run: | |
| 51 | + declare -a context_list=( |
| 52 | + "buildbot/package_freebsd64" |
| 53 | + "buildbot/package_linux32" |
| 54 | + "buildbot/package_linux64" |
| 55 | + "buildbot/package_linuxaarch64" |
| 56 | + "buildbot/package_linuxarmv7l" |
| 57 | + "buildbot/package_linuxppc64le" |
| 58 | + "buildbot/package_macos64" |
| 59 | + "buildbot/package_macosaarch64" |
| 60 | + "buildbot/package_musl64" |
| 61 | + "buildbot/package_win32" |
| 62 | + "buildbot/package_win64" |
| 63 | + "buildbot/tester_freebsd64" |
| 64 | + "buildbot/tester_linux32" |
| 65 | + "buildbot/tester_linux64" |
| 66 | + "buildbot/tester_linuxaarch64" |
| 67 | + "buildbot/tester_linuxarmv7l" |
| 68 | + "buildbot/tester_linuxppc64le" |
| 69 | + "buildbot/tester_macos64" |
| 70 | + "buildbot/tester_macosaarch64" |
| 71 | + "buildbot/tester_musl64" |
| 72 | + "buildbot/tester_win32" |
| 73 | + "buildbot/tester_win64" |
| 74 | + ) |
| 75 | + for context in "${context_list[@]}" |
| 76 | + do |
| 77 | + curl \ |
| 78 | + -X POST \ |
| 79 | + -H "Authorization: token $GITHUB_TOKEN" \ |
| 80 | + -H "Accept: application/vnd.github.v3+json" \ |
| 81 | + -d "{\"state\": \"$STATE\", \"context\": \"$context\"}" \ |
| 82 | + https://api.github.com/repos/JuliaLang/julia/statuses/$SHA |
| 83 | + done |
| 84 | + env: |
| 85 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 86 | + SHA: ${{ env.SHA }} |
| 87 | + STATE: "pending" |
0 commit comments