Skip to content

Commit

Permalink
testing 3
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 7, 2024
1 parent e890fb6 commit 8c17b24
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/update-yaml-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c17b24

Please sign in to comment.