Skip to content

Commit 4ec7614

Browse files
authored
Merge pull request #232 from Expensify/mountiny-patch-1
Update publish.yml
2 parents 562f7a9 + a6c1ad0 commit 4ec7614

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,8 @@ on:
99
concurrency: ${{ github.workflow }}
1010

1111
jobs:
12-
get_pull_request:
12+
publish:
1313
# os-botify[bot] will update the version on `main`, so this check is important to prevent an infinite loop
1414
if: ${{ github.actor != 'os-botify[bot]' }}
15-
runs-on: ubuntu-latest
16-
outputs:
17-
pull_request_number: ${{ steps.getMergedPullRequest.outputs.number }}
18-
steps:
19-
- uses: actions/checkout@v3
20-
with:
21-
ref: main
22-
23-
- name: Get merged pull request
24-
id: getMergedPullRequest
25-
uses: actions-ecosystem/action-get-merged-pull-request@59afe90821bb0b555082ce8ff1e36b03f91553d9
26-
with:
27-
github_token: ${{ github.token }}
28-
29-
publish:
30-
needs: get_pull_request
3115
uses: Expensify/GitHub-Actions/.github/workflows/npmPublish.yml@main
3216
secrets: inherit
33-
with:
34-
repository: ${{ github.repository }}
35-
# 'outputs' provides a string, and we need a number, so we use fromJSON to convert it
36-
pull_request_number: ${{ fromJSON(needs.get_pull_request.outputs.pull_request_number) }}

0 commit comments

Comments
 (0)