Skip to content

Commit ddb4c67

Browse files
authored
Fix api-go workflow dispatch (#497)
**What changed?** Collapse two actions into one to avoid problems with multi-line strings and GITHUB_OUTPUT **Why?** Fix breakage
1 parent 33cbaa8 commit ddb4c67

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/trigger-api-go-update.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
owner: ${{ github.repository_owner }}
3131
repositories: api-go # generate a token with permissions to trigger GHA in api-go repo
3232

33-
- name: Prepare inputs
34-
id: prepare_inputs
33+
- name: Dispatch api-go Github Action
3534
env:
35+
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
3636
EVENT_PUSH_BRANCH: ${{ github.event.ref }}
3737
EVENT_PUSH_COMMIT_AUTHOR: ${{ github.event.head_commit.author.name }}
3838
EVENT_PUSH_COMMIT_AUTHOR_EMAIL: ${{ github.event.head_commit.author.email }}
@@ -55,19 +55,6 @@ jobs:
5555
;;
5656
esac
5757
58-
echo "BRANCH=${BRANCH}" >> $GITHUB_OUTPUT
59-
echo "COMMIT_AUTHOR=${COMMIT_AUTHOR}" >> $GITHUB_OUTPUT
60-
echo "COMMIT_AUTHOR_EMAIL=${COMMIT_AUTHOR_EMAIL}" >> $GITHUB_OUTPUT
61-
echo "COMMIT_MESSAGE=${COMMIT_MESSAGE}" >> $GITHUB_OUTPUT
62-
63-
- name: Dispatch api-go Github Action
64-
env:
65-
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
66-
BRANCH: ${{ steps.prepare_inputs.outputs.BRANCH }}
67-
COMMIT_AUTHOR: ${{ steps.prepare_inputs.outputs.COMMIT_AUTHOR }}
68-
COMMIT_AUTHOR_EMAIL: ${{ steps.prepare_inputs.outputs.COMMIT_AUTHOR_EMAIL }}
69-
COMMIT_MESSAGE: ${{ steps.prepare_inputs.outputs.COMMIT_MESSAGE }}
70-
run: |
7158
gh workflow run update-proto.yml -R https://github.com/temporalio/api-go \
7259
-r master \
7360
-f branch="${BRANCH}" \

0 commit comments

Comments
 (0)