Skip to content

Commit

Permalink
Add more release logs for debugging (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanKingston authored Oct 21, 2024
1 parent 5247129 commit 8634463
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
jobs:
release_pr:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"

steps:
- uses: actions/checkout@v4
Expand All @@ -19,7 +18,7 @@ jobs:
node-version: 20
cache: 'npm'

- name: Fetch files and checkout
- name: Fetch files and ensure branches exist
run: |
git fetch origin
# Check if the 'main' branch exists, if not, create it
Expand All @@ -34,6 +33,18 @@ jobs:
else
git checkout -b releases origin/releases
fi
- name: Debug changelog file
run: |
ls -la ${{ github.workspace }}/CHANGELOG.txt
cat ${{ github.workspace }}/CHANGELOG.txt
- name: Collect commit ranges
run: |
bash ./scripts/changelog.sh > ${{ github.workspace }}/CHANGELOG.txt
- name: Checkout code from main into release branch
run: |
# Checkout the code of main onto releases
git checkout main -- .
Expand All @@ -54,10 +65,6 @@ jobs:
skip_checkout: true
branch: "releases"

- name: Collect commit ranges
run: |
bash ./scripts/changelog.sh > ${{ github.workspace }}/CHANGELOG.txt
- name: Debug changelog file
run: |
ls -la ${{ github.workspace }}/CHANGELOG.txt
Expand Down

0 comments on commit 8634463

Please sign in to comment.