mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-02-19 21:06:05 +00:00
Add dispatch
This commit is contained in:
parent
f01a13aa52
commit
59e7a10732
5
.github/actions/dispatch.sh
vendored
Executable file
5
.github/actions/dispatch.sh
vendored
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
REPOSITORY_REF="$1"
|
||||||
|
TOKEN="$2"
|
||||||
|
|
||||||
|
curl -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${TOKEN}" --request POST --data '{"event_type": "request-build"}' https://api.github.com/repos/${REPOSITORY_REF}/dispatches
|
||||||
|
echo "Requested Build for $REPOSITORY_REF"
|
18
.github/workflows/build-reference.yml
vendored
Normal file
18
.github/workflows/build-reference.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: reference
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- 'gh-pages'
|
||||||
|
|
||||||
|
env:
|
||||||
|
GH_TOKEN_DISPATCH: ${{ secrets.GH_TOKEN_DISPATCH }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Dispatch Build Request
|
||||||
|
run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'rwinch/spring-reference' "$GH_TOKEN_DISPATCH"
|
Loading…
x
Reference in New Issue
Block a user