Skip to content

Commit

Permalink
fix(ci): specifying fetch depth in CHANGELOG.md generation (#9564)
Browse files Browse the repository at this point in the history
```
    # Number of commits to fetch. 0 indicates all history for all branches and tags.
    # Default: 1
    fetch-depth: ''
```

https://github.com/actions/checkout
  • Loading branch information
suztomo authored Jun 20, 2023
1 parent c873d10 commit 0158232
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/changelog_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
contains(github.event.pull_request.labels.*.name, 'autorelease: pending')
steps:
- uses: actions/checkout@v3
- name: Checkout the branch
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Show status of the branch checked out
run: |
echo "Checking out release please branch"
git checkout -b release-please--branches--main origin/release-please--branches--main
git status
- name: Fetching pull request body
env:
GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
Expand Down

0 comments on commit 0158232

Please sign in to comment.