@@ -55,56 +55,56 @@ jobs:
5555 # run: npm publish
5656 # working-directory: xero-node
5757
58- notify-codegen-repo :
59- needs : publish
60- if : always()
61- runs-on : ubuntu-latest
62- permissions :
63- contents : write
64- pull-requests : write
58+ # notify-codegen-repo:
59+ # needs: publish
60+ # if: always()
61+ # runs-on: ubuntu-latest
62+ # permissions:
63+ # contents: write
64+ # pull-requests: write
6565
66- steps :
67- - name : Checkout
68- uses : actions/checkout@v4
69- with :
70- repository : XeroAPI/xero-node
71- path : xero-node
66+ # steps:
67+ # - name: Checkout
68+ # uses: actions/checkout@v4
69+ # with:
70+ # repository: XeroAPI/xero-node
71+ # path: xero-node
7272
73- - name : Install octokit dependencies
74- run : npm i
75- working-directory : ${{ github.workspace }}/.github/octokit
73+ # - name: Install octokit dependencies
74+ # run: npm i
75+ # working-directory: ${{ github.workspace }}/.github/octokit
7676
77- - name : Get github app access token
78- id : get_access_token
79- env :
80- GITHUB_APP_ID : ${{ secrets.XERO_CODEGEN_BOT_APPLICATION_ID }}
81- GITHUB_APP_PRIVATE_KEY : ${{ secrets.XERO_CODEGEN_BOT_APPLICATION_KEY }}
82- uses : actions/github-script@v7
83- with :
84- result-encoding : string
85- script : |
86- const { getAccessToken } = await import('${{ github.workspace }}/.github/octokit/index.js')
87- const token = await getAccessToken()
88- return token
77+ # - name: Get github app access token
78+ # id: get_access_token
79+ # env:
80+ # GITHUB_APP_ID: ${{ secrets.XERO_CODEGEN_BOT_APPLICATION_ID }}
81+ # GITHUB_APP_PRIVATE_KEY: ${{ secrets.XERO_CODEGEN_BOT_APPLICATION_KEY }}
82+ # uses: actions/github-script@v7
83+ # with:
84+ # result-encoding: string
85+ # script: |
86+ # const { getAccessToken } = await import('${{ github.workspace }}/.github/octokit/index.js')
87+ # const token = await getAccessToken()
88+ # return token
8989
90- - name : Notify codegen repo
91- run : |
92- curl -X POST -H "Authorization: token ${{ steps.get_access_token.outputs.result }}" \
93- -H "Accept: application/vnd.github.v3+json" \
94- -H "Content-Type: application/json" \
95- https://api.github.com/repos/xero-internal/xeroapi-sdk-codegen/actions/workflows/notify-sdk-publish.yml/dispatches \
96- -d '{
97- "ref": "deploy-track-pipeline-changes",
98- "inputs": {
99- "commit": "${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}",
100- "status": "${{needs.publish.result}}",
101- "deployer": "xero-codegen-bot",
102- "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
103- "environment": "test",
104- "sdk_type": "node",
105- "cab_key": ${{ github.event.inputs.cab_id }}
106- }
107- }'
90+ # - name: Notify codegen repo
91+ # run: |
92+ # curl -X POST -H "Authorization: token ${{ steps.get_access_token.outputs.result }}" \
93+ # -H "Accept: application/vnd.github.v3+json" \
94+ # -H "Content-Type: application/json" \
95+ # https://api.github.com/repos/xero-internal/xeroapi-sdk-codegen/actions/workflows/notify-sdk-publish.yml/dispatches \
96+ # -d '{
97+ # "ref": "deploy-track-pipeline-changes",
98+ # "inputs": {
99+ # "commit": "${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}",
100+ # "status": "${{needs.publish.result}}",
101+ # "deployer": "xero-codegen-bot",
102+ # "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
103+ # "environment": "test",
104+ # "sdk_type": "node",
105+ # "cab_key": ${{ github.event.inputs.cab_id }}
106+ # }
107+ # }'
108108
109109 # notify-slack-on-success:
110110 # runs-on: ubuntu-latest
0 commit comments