Skip to content

feat: Implement ListTags for all taggable Lightsail resources #10194

feat: Implement ListTags for all taggable Lightsail resources

feat: Implement ListTags for all taggable Lightsail resources #10194

name: Generate CHANGELOG
on:
pull_request:
types: [closed]
workflow_dispatch:
jobs:
GenerateChangelog:
if: github.event.pull_request.merged || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
fetch-depth: 0
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: .ci/tools/go.mod
- run: cd .ci/tools && go install github.com/hashicorp/go-changelog/cmd/changelog-build
- run: ./.ci/scripts/generate-changelog.sh
- run: |
if [[ `git status --porcelain` ]]; then
if ${{github.event_name == 'workflow_dispatch'}}; then
MSG="Update CHANGELOG.md (Manual Trigger)"
else
MSG="Update CHANGELOG.md for #${{ github.event.pull_request.number }}"
fi
git config --local user.email changelogbot@hashicorp.com
git config --local user.name changelogbot
git add CHANGELOG.md
git commit -m "$MSG"
git push
fi