ci: Let workflow auto add label when inclue some text in content #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Changelog | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
name: Generate and Commit Changelog | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Generate Changelog | |
uses: smichard/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set Git User Info | |
run: | | |
git config user.name 'GitHub Actions Bot' | |
git config user.email '[email protected]' | |
- run: | | |
sudo chmod -R ugo+rwX . | |
- name: Commit Changelog | |
run: | | |
git add CHANGELOG.md | |
git commit -m "docs: :robot: changelog file generated" || echo "No changes to commit" | |
git push |