Skip to content

Commit 00abd34

Browse files
committed
Add Dispatch to build reference
1 parent 0864140 commit 00abd34

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--
2+
!!! For Security Vulnerabilities, please go to https://spring.io/security-policy !!!
3+
-->
4+
**Affects:** \<Spring Framework version>
5+
6+
---
7+
<!--
8+
Thanks for taking the time to create an issue. Please read the following:
9+
10+
- Questions should be asked on Stack Overflow.
11+
- For bugs, specify affected versions and explain what you are trying to do.
12+
- For enhancements, provide context and describe the problem.
13+
14+
Issue or Pull Request? Create only one, not both. GitHub treats them as the same.
15+
If unsure, start with an issue, and if you submit a pull request later, the
16+
issue will be closed as superseded.
17+
-->

.github/actions/dispatch.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
REPOSITORY_REF="$1"
2+
TOKEN="$2"
3+
4+
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
5+
echo "Requested Build for $REPOSITORY_REF"

.github/workflows/build-reference.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: reference
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'gh-pages'
7+
8+
env:
9+
GH_TOKEN_DISPATCH: ${{ secrets.GH_TOKEN_DISPATCH }}
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Source
16+
uses: actions/checkout@v2
17+
- name: Dispatch Build Request
18+
run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'rwinch/spring-reference' "$GH_TOKEN_DISPATCH"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: "Validate Gradle Wrapper"
2+
on: [push, pull_request]
3+
4+
jobs:
5+
validation:
6+
name: "Validation"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: gradle/wrapper-validation-action@v1

0 commit comments

Comments
 (0)