Skip to content

Commit

Permalink
ci: update INPUTS_BRANCH variable definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tenequm committed Mar 5, 2024
1 parent a6061f1 commit 4c36f41
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/pr-automation-types-rollup-solochain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ permissions:
deployments: write
checks: write

env:
INPUTS_BRANCH: ${{ github.event.inputs.branch || github.ref }}

jobs:
release-type-definitions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# with:
# ref: ${{ github.event.inputs.branch }}
with:
ref: ${{ env.INPUTS_BRANCH }}

- uses: nrwl/nx-set-shas@v4

Expand All @@ -47,8 +50,6 @@ jobs:

- name: NPM version bump type definitions
working-directory: packages/type-definitions
env:
INPUTS_BRANCH: ${{ github.event.inputs.branch }}
run: |
# Branch name sanitization added to avoid issues with npm version command
# Example `ci/new-branch-1.0.0` -> `ci-new-branch-1-0-0`
Expand All @@ -69,7 +70,6 @@ jobs:
working-directory: dist/packages/type-definitions
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
INPUTS_BRANCH: ${{ github.event.inputs.branch }}
run: |
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
Expand Down Expand Up @@ -139,8 +139,6 @@ jobs:

- name: NPM version bump
working-directory: packages/types
env:
INPUTS_BRANCH: ${{ github.event.inputs.branch }}
run: |
# Branch name sanitization added to avoid issues with npm version command
# Example `ci/new-branch-1.0.0` -> `ci-new-branch-1-0-0`
Expand All @@ -165,7 +163,6 @@ jobs:
working-directory: dist/packages/types
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
INPUTS_BRANCH: ${{ github.event.inputs.branch || 'ci/eth-develop-solochain-workflow-updates-MGX-1001' }}
run: |
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
Expand Down Expand Up @@ -237,7 +234,6 @@ jobs:
working-directory: dist/packages/sdk
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
INPUTS_BRANCH: ${{ github.event.inputs.branch }}
run: |
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
Expand Down

0 comments on commit 4c36f41

Please sign in to comment.