diff --git a/.github/.workflows/updatePRTemplate.yml b/.github/.workflows/updatePRTemplate.yml deleted file mode 100644 index 3791cf1..0000000 --- a/.github/.workflows/updatePRTemplate.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: update Pull Request Template Link File on branch creation - -on: - create: - branches: - - '*' - -jobs: - update_pr_file: - runs-on: ubuntu-latest - steps: - - name: Checkout branch - uses: actions/checkout@v3 - - - name: Update pullRequestLinks.md - run: | - echo "# Welcome to the ${{ github.ref_name }} branch!" > 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 }} diff --git a/.github/workflows/updatePRTemplate.yml b/.github/workflows/updatePRTemplate.yml new file mode 100644 index 0000000..9dab51a --- /dev/null +++ b/.github/workflows/updatePRTemplate.yml @@ -0,0 +1,30 @@ +name: update Pull Request Template Link File on branch creation + +on: + create: + branches: + - '*' + +jobs: + update_pr_file: + 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 }}