File tree Expand file tree Collapse file tree 2 files changed +20
-23
lines changed
Expand file tree Collapse file tree 2 files changed +20
-23
lines changed Original file line number Diff line number Diff line change @@ -17,20 +17,20 @@ jobs:
1717 with :
1818 ref : ' master'
1919
20- - name : Install octokit dependencies
21- run : npm i
22- working-directory : ${{ github.workspace }}/.github/octokit
23-
20+ - name : Install get-access-token dependencies
21+ run : npm ci
22+ working-directory : ${{ github.workspace }}/.github/get-access-token
23+
2424 - name : Get github app access token
2525 id : get_access_token
2626 env :
27- GITHUB_APP_ID : ${{ secrets.XERO_PUBLIC_BOT_APP_ID }}
28- GITHUB_APP_PRIVATE_KEY : ${{ secrets.XERO_PUBLIC_BOT_KEY }}
27+ GITHUB_APP_ID : ${{ secrets.XERO_GITHUB_APP_ID }}
28+ GITHUB_APP_PRIVATE_KEY : ${{ secrets.XERO_GITHUB_APPLICATION_KEY }}
2929 uses : actions/github-script@v7
3030 with :
3131 result-encoding : string
3232 script : |
33- const { getAccessToken } = await import('${{ github.workspace }}/.github/octokit /index.js')
33+ const { getAccessToken } = await import('${{ github.workspace }}/.github/get-access-token /index.js')
3434 const token = await getAccessToken()
3535 return token
3636
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Create Github Release for OpenAPI Spec
22
33on :
44 workflow_dispatch :
5+ pull_request :
56
67jobs :
78 Github-release :
@@ -12,24 +13,20 @@ jobs:
1213 pull-requests : write
1314
1415 steps :
15-
16- - name : Checkout Repository
17- uses : actions/checkout@v4
18- with :
16+ - name : Checkout Repository
17+ uses : actions/checkout@v4
18+ with :
1919 fetch-depth : 0
2020
21- - name : Set up Node environment
22- uses : actions/setup-node@v4
23- with :
21+ - name : Set up Node environment
22+ uses : actions/setup-node@v4
23+ with :
2424 node-version : 20
2525
26- - name : install node package
27- run : npm i
28- working-directory : ${{ github.workspace }}/.github/semantic-release
26+ - name : Install semantic-release dependencies
27+ run : npm ci
28+ working-directory : ${{ github.workspace }}/.github/semantic-release
2929
30- - name : Perform release
31- run : |
32- npx semantic-release
33- env :
34- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
35- working-directory : ${{ github.workspace }}/.github/semantic-release
30+ - name : Perform release
31+ run : npx semantic-release --dry-run
32+ working-directory : ${{ github.workspace }}/.github/semantic-release
You can’t perform that action at this time.
0 commit comments