From 8c17b244a933c12ad2082c3a305236958929c5d0 Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Mon, 7 Oct 2024 11:38:53 +0530 Subject: [PATCH] testing 3 --- .github/workflows/update-yaml-version.yml | 30 +++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/update-yaml-version.yml b/.github/workflows/update-yaml-version.yml index 6d94cfac..7a7d82d5 100644 --- a/.github/workflows/update-yaml-version.yml +++ b/.github/workflows/update-yaml-version.yml @@ -22,22 +22,22 @@ jobs: with: ref: 'PETOSS-588-auto-PR-logic' - # - name: Install octokit dependencies - # run: npm i - # working-directory: ${{ github.workspace }}/.github/octokit + - name: Install octokit dependencies + run: npm i + working-directory: ${{ github.workspace }}/.github/octokit - # - name: Get github app access token - # id: get_access_token - # env: - # GITHUB_APP_ID: ${{ secrets.XERO_PUBLIC_BOT_APP_ID }} - # GITHUB_APP_PRIVATE_KEY: ${{ secrets.XERO_PUBLIC_BOT_KEY }} - # uses: actions/github-script@v7 - # with: - # result-encoding: string - # script: | - # const { getAccessToken } = await import('${{ github.workspace }}/.github/octokit/index.js') - # const token = await getAccessToken() - # return token + - name: Get github app access token + id: get_access_token + env: + GITHUB_APP_ID: ${{ secrets.XERO_PUBLIC_BOT_APP_ID }} + GITHUB_APP_PRIVATE_KEY: ${{ secrets.XERO_PUBLIC_BOT_KEY }} + uses: actions/github-script@v7 + with: + result-encoding: string + script: | + const { getAccessToken } = await import('${{ github.workspace }}/.github/octokit/index.js') + const token = await getAccessToken() + return token # - name: Fetch Latest release number # id: get_latest_release_number