Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions .github/workflows/create-github-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: "master"

- name: Install get-access-token dependencies
run: npm ci
working-directory: ${{ github.workspace }}/.github/get-access-token

- name: Get github app access token
id: get_access_token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.XERO_PUBLIC_BOT_APP_ID}}
private-key: ${{ secrets.XERO_PUBLIC_BOT_KEY }}
owner: xero-internal
repositories: xeroapi-sdk-codegen
fetch-depth: 0

- name: Fetch Latest release number
id: get_latest_release_number
Expand All @@ -37,7 +24,7 @@ jobs:
echo "Latest release version is - $latest_version"
echo "releaseVersion=$latest_version" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{steps.get_access_token.outputs.token}}
GH_TOKEN: ${{ github.token }}

- name: Set up branch name
id: identify_branch_name
Expand Down Expand Up @@ -117,4 +104,4 @@ jobs:
echo "PR is already up to date"
fi
env:
GH_TOKEN: ${{steps.get_access_token.outputs.token}}
GH_TOKEN: ${{ github.token }}
2 changes: 2 additions & 0 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ jobs:
- name: Perform release
run: npx semantic-release --dry-run
working-directory: ${{ github.workspace }}/.github/semantic-release
env:
GH_TOKEN: ${{ github.token }}
Loading