Skip to content

Commit

Permalink
Merge pull request #2915 from ActiveState/mitchell/dx-1743
Browse files Browse the repository at this point in the history
Only run Target GitHub Action on PR creation.
  • Loading branch information
mitchell-as authored Dec 1, 2023
2 parents ab3f05a + 123e47b commit ec6f30c
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.action == 'opened' || github.event.action == 'reopened'
shell: bash
run: go run scripts/ci/target-version-pr/main.go ${{ github.event.pull_request.number }}

Expand Down

0 comments on commit ec6f30c

Please sign in to comment.