Skip to content

Commit

Permalink
CI: Fix generate-types job in main branch workflow (#422)
Browse files Browse the repository at this point in the history
* fix: update branch reference in main workflow for eth-rollup-develop

* fix: update branch references in reusable-gasp-node-generate-types workflow to pass nodeRepositoryRevision input to the workflow in gasp-dev-kit
  • Loading branch information
tenequm authored Jan 23, 2025
1 parent c1146db commit 0fe8ae0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/reusable-gasp-node-generate-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,26 @@ permissions:
jobs:
generate-gasp-node-types:
runs-on: ubuntu-24.04
env:
NODE_DOCKER_IMAGE: ${{ inputs.nodeDockerImage != '' && inputs.nodeDockerImage || format('gaspxyz/rollup-node:{0}', inputs.globalVersion) }}
BRANCH: ${{ inputs.branch }}
steps:
- uses: actions/checkout@v4

- name: Create branch ${{ env.BRANCH }} in gasp-dev-kit
- name: Create branch ${{ inputs.branch }} in gasp-dev-kit
uses: GuillaumeFalourd/[email protected]
with:
repository_owner: gasp-xyz
repository_name: gasp-dev-kit
new_branch_name: ${{ env.BRANCH }}
new_branch_name: ${{ inputs.branch }}
new_branch_ref: eth-rollup-develop
ignore_branch_exists: true
access_token: ${{ secrets.BOT_GITHUB_TOKEN }}

- name: Invoke workflow in gasp-dev-kit repo with inputs
uses: the-actions-org/workflow-dispatch@v4
env:
NODE_DOCKER_IMAGE: ${{ inputs.nodeDockerImage != '' && inputs.nodeDockerImage || format('gaspxyz/rollup-node:{0}', inputs.globalVersion) }}
with:
ref: ${{ env.BRANCH }}
ref: ${{ inputs.branch }}
workflow: pr-automation-types-rollup-solochain.yml
repo: gasp-xyz/gasp-dev-kit
token: ${{ secrets.BOT_GITHUB_TOKEN }}
inputs: '{"parachainDocker": "${{ env.NODE_DOCKER_IMAGE }}", "branch": "${{ env.BRANCH }}", "nodeRepository": "gasp-xyz/gasp-monorepo", "nodeCodebaseWorkingDirectory": "mangata-repo/gasp-node"}'
inputs: '{"parachainDocker": "${{ env.NODE_DOCKER_IMAGE }}", "branch": "${{ inputs.branch }}", "nodeRepository": "gasp-xyz/gasp-monorepo", "nodeRepositoryRevision": "${{ inputs.globalVersion }}", "nodeCodebaseWorkingDirectory": "mangata-repo/gasp-node"}'

0 comments on commit 0fe8ae0

Please sign in to comment.