get.porter.sh/porter@v1.3.0/.github/workflows/changelog.yaml (about) 1 name: Generate Changelog for Porter 2 on: 3 release: 4 types: [published] 5 6 jobs: 7 changelog: 8 runs-on: ubuntu-latest 9 steps: 10 - name: Checkout code 11 uses: actions/checkout@v3.3.0 12 with: 13 ref: main 14 fetch-depth: 0 15 token: ${{ secrets.GITHUB_TOKEN }} 16 17 - name: Setup Node.js 18 uses: actions/setup-node@v2 19 with: 20 node-version: 16 21 22 - name: Install conventional-changelog-cli 23 run: npm install -g conventional-changelog-cli 24 25 - name: Generate changelog 26 run: conventional-changelog -p angular -i CHANGELOG.md -s -r 0 27 28 - name: Commit and push changes 29 run: | 30 git config --global user.name 'GitHub Actions' 31 git config --global user.email 'actions@github.com' 32 git add CHANGELOG.md 33 git commit -m "Updated Changelog after Latest Release" || echo "No changes to commit" 34 git push origin main