Skip to content

Commit

Permalink
workflows/release: checkout repository for release job.
Browse files Browse the repository at this point in the history
although not documented, the github-changelog-generator seems to
access local git metadata.

> fatal: not a git repository (or any parent up to mount point /github)
> Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
> fatal: not a git repository (or any parent up to mount point /github)
> Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

also to avoid data munging, we use the changelog from the generated
file rather than the step output.
  • Loading branch information
UiP9AV6Y committed Jun 1, 2020
1 parent f02eeae commit 9ba9b67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,18 @@ jobs:
- uses: actions/download-artifact@v2
with:
name: release-${{ github.sha }}
- uses: actions/checkout@v2
- uses: heinrichreimer/[email protected]
id: generate_changelog
with:
onlyLastTag: 'true'
stripHeaders: 'true'
stripGeneratorNotice: 'true'
output: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}
- uses: softprops/action-gh-release@v1
with:
body: ${{ steps.generate_changelog.outputs.changelog }}
body_path: CHANGELOG.md
files: |
*.tgz
*.sha256
Expand Down

0 comments on commit 9ba9b67

Please sign in to comment.