This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
update Pull Request Template Link File on branch creation #17
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 Pull Request Template Link File on branch creation | |
on: | |
create: | |
branches: | |
- '*' | |
jobs: | |
update_pr_file: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Update pullRequestLinks.md | |
run: | | |
echo " | |
## Pull Requests to Main | |
* [New Feature](https://github.com/lavanyagarg112/meetwise/compare/main...${{ github.ref_name }}?template=feature.md) | |
* [Bug Fix](https://github.com/lavanyagarg112/meetwise/compare/main...${{ github.ref_name }}?template=bug.md) | |
* [Documentation](https://github.com/lavanyagarg112/meetwise/compare/main...${{ github.ref_name }}?template=docs.md) | |
* [Refactoring](https://github.com/lavanyagarg112/meetwise/compare/main...${{ github.ref_name }}?template=refactor.md) | |
* [Chore](https://github.com/lavanyagarg112/meetwise/compare/main...${{ github.ref_name }}?template=chore.md)" > pullRequestLinks.md | |
git add pullRequestLinks.md | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git commit -m "Update pullRequestLinks.md on branch creation" | |
git push origin ${{ github.ref_name }} |