Skip to content

Commit

Permalink
Only run Target GitHub Action on PR creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Nov 30, 2023
1 parent ab3f05a commit a48ea3f
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
name: Target & Verify PR
runs-on: ubuntu-20.04
env:
ACTIVESTATE_CI: true
ACTIVESTATE_CLI_DISABLE_RUNTIME: true
SHELL: bash
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_USERNAME: ${{ secrets.JIRA_EMAIL }}
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
Expand All @@ -43,28 +40,14 @@ jobs:
name: Install State Tool
uses: ActiveState/setup-state-tool@v1

- # === Setup ===
name: Setup
shell: bash
run: |
bin=$(pwd)/.github/deps/${{ runner.os }}/bin
echo "Adding $bin to PATH"
echo "$bin" >> $GITHUB_PATH
ls -ahl $bin
printenv
- # === Install Deps ===
name: Install Deps
shell: bash
run: state run install-deps

- # === Preprocess ===
name: Preprocess
shell: bash
run: state run preprocess -v

- # === Set Target PR & FixVersion ===
name: Set Target PR and FixVersion
if: github.event_name == 'opened' || github.event_name == 'reopened'
shell: bash
run: go run scripts/ci/target-version-pr/main.go ${{ github.event.pull_request.number }}

Expand Down

0 comments on commit a48ea3f

Please sign in to comment.