Trigger workflow on push of this experiment branch #1
Workflow file for this run
This file contains hidden or 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: | |
| # - master | |
| on: | |
| push: | |
| branches: | |
| - lr/workflow-update | |
| jobs: | |
| push_to_branch: | |
| name: 'Add a line to CHANGELOG.md' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Check out the repo' | |
| uses: actions/checkout@v4 | |
| - name: Configure Git | |
| run: | | |
| git config user.name "GitHub Actions" | |
| git config user.email "actions@github.com" | |
| - name: Make a change to CHANGELOG | |
| run: | | |
| echo "=======================" >> CHANGELOG.md | |
| echo "Line added to CHANGELOG" >> CHANGELOG.md | |
| echo "=======================" >> CHANGELOG.md | |
| git add CHANGELOG.md | |
| git commit -m "Update CHANGELOG" | |
| git push |