Skip to content

Only run Target GitHub Action on PR creation. #125

Only run Target GitHub Action on PR creation.

Only run Target GitHub Action on PR creation. #125

Workflow file for this run

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 }}