-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split up target and verify GitHub Actions.
- Loading branch information
1 parent
ab3f05a
commit 01acb0d
Showing
2 changed files
with
42 additions
and
37 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,38 @@ | ||
name: Target | ||
|
||
# === Triggers === | ||
'on': | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
# === JOBS === | ||
jobs: | ||
# === Target PR === | ||
targetpr: | ||
name: Target PR | ||
runs-on: ubuntu-20.04 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JIRA_USERNAME: ${{ secrets.JIRA_EMAIL }} | ||
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- # === Checkout code === | ||
name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- # === Install Go === | ||
name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.20.x' | ||
|
||
- # === Set Target PR & FixVersion === | ||
name: Set Target PR and FixVersion | ||
shell: bash | ||
run: go run scripts/ci/target-version-pr/main.go ${{ github.event.pull_request.number }} |
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