Merge pull request #12 from 0LNetworkCommunity/feat/lei_changelog #9
Workflow file for this run
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: Update Changelog | |
on: | |
push: | |
branches: | |
- feat/lei_changelog_dev | |
jobs: | |
update-changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Set Script Permissions | |
run: chmod +x ./web-app/scripts/generate_changelog.sh | |
- name: Generate Custom Changelog | |
run: ./web-app/scripts/generate_changelog.sh | |
- name: Commit and Push Changes | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email '[email protected]' | |
git add web-app/CHANGELOG.md | |
git commit -m "Update CHANGELOG.md" || echo "No changes to commit" | |
git push |