Skip to content

Commit

Permalink
Add fallback changelog if prevRev is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Aug 31, 2024
1 parent f037926 commit e15b118
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,19 @@ jobs:
with:
path: ghidra-ci-roblabla
- name: Generate CHANGELOG.md
if: ${{ inputs.prevRev != '' }}
run: |
cd ghidra-ci-roblabla
sudo apt-get update
sudo apt-get install libkrb5-dev
npm i
node generate_changelog.js ${{ github.event.inputs.repo }} ${{github.event.inputs.prevRev}} ${{github.event.inputs.rev}} > CHANGELOG.md
- name: Generate fallback CHANGELOG.md
if: ${{ inputs.prevRev == '' }}
run: |
cd ghidra-ci-roblabla
echo "# Changelog" > CHANGELOG.md
echo "Built from [${{ inputs.repo }}@${{ inputs.rev }}](https://github.com/${{ inputs.repo }}/commit/${{ inputs.rev }})" >> CHANGELOG.md
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit e15b118

Please sign in to comment.