Skip to content

Commit e4471ea

Browse files
authored
Merge pull request #15 from BranchMetrics/spm-release-automation
Updated script to fix trigger type and input (from main repo - ios-branch-sdk)
2 parents 26c3a08 + eca3d20 commit e4471ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/import.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Import release
22

33
on:
4-
workflow_dispatch:
4+
repository_dispatch:
55
inputs:
66
tag:
77
required: true
@@ -20,19 +20,19 @@ jobs:
2020
uses: actions/checkout@v3
2121
with:
2222
repository: ${{ env.MAIN_REPO_OWNER }}/${{ env.MAIN_REPO_REPO }}
23-
ref: ${{ github.event.inputs.tag }}
23+
ref: ${{ github.event.client_payload.tag }}
2424
path: .ios-repo
25-
- name: Import release ${{ github.event.inputs.tag }}
25+
- name: Import release ${{ github.event.client_payload.tag }}
2626
id: import-release
2727
uses: ./.github/actions/import-release
2828
with:
29-
tag: ${{ github.event.inputs.tag }}
29+
tag: ${{ github.event.client_payload.tag }}
3030
- name: Create release
3131
uses: actions/github-script@v4
3232
with:
3333
result-encoding: string
3434
script: |
35-
const tag = '${{ github.event.inputs.tag }}';
35+
const tag = '${{ github.event.client_payload.tag }}';
3636
const sha = '${{ steps.import-release.outputs.sha }}';
3737
const mainRepoOwner = '${{ env.MAIN_REPO_OWNER }}';
3838
const mainRepoRepo = '${{ env.MAIN_REPO_REPO }}';

0 commit comments

Comments
 (0)