Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #104 from lavanyagarg112/easyPRworkflow
Browse files Browse the repository at this point in the history
Easy pr workflow
  • Loading branch information
lavanyagarg112 authored Aug 9, 2024
2 parents 961e40a + dbda9f3 commit e39036c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/.workflows/updatePRTemplate.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/updatePRTemplate.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit e39036c

Please sign in to comment.