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
15 changes: 8 additions & 7 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,24 @@ jobs:
pull-requests: write

steps:
- name: Get github app access token
id: get_access_token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.XERO_PUBLIC_APP_ID }}
private-key: ${{ secrets.XERO_PUBLIC_BOT_KEY }}

- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.get_access_token.outputs.token }}

- name: Set up Node environment
uses: actions/setup-node@v4
with:
node-version: 20

- name: Get github app access token
id: get_access_token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.XERO_PUBLIC_APP_ID }}
private-key: ${{ secrets.XERO_PUBLIC_BOT_KEY }}

- name: Perform release
run: npx --package @semantic-release/exec semantic-release
env:
Expand Down
5 changes: 5 additions & 0 deletions scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
versionNumber=${1:?Version number is required as first argument}
branchName=${2:-master}

if [ "${GITHUB_ACTIONS:-}" = "true" ]; then
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
fi

git checkout "$branchName"

for file in xero*.yaml; do
Expand Down
Loading