fix(): handle context change just after property being initialized #3311
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release after merged | |
on: | |
pull_request: | |
types: [closed] | |
branches: [master, v3] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
# Only if it is merged and contains a certain label. | |
if: | | |
github.event.pull_request.merged && | |
contains( github.event.pull_request.labels.*.name, 'eve: release after merged') | |
steps: | |
- name: Trigger lerna version | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.GH_TOKEN_EVE }} | |
script: | | |
github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'lerna-version.yml', | |
ref: context.payload.pull_request.base.ref, | |
}) |