Skip to content
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 #11

update Pull Request Template Link File on branch creation

update Pull Request Template Link File on branch creation #11

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 }}