Skip to content

Commit

Permalink
Update create-pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dzwood authored Jul 11, 2023
1 parent 40d0f0b commit 05a91c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/create-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,21 @@ jobs:
- name: Change to repository directory
run: cd $GITHUB_WORKSPACE

- name: Fetch latest changes
run: git fetch origin dev:refs/remotes/origin/dev

- name: Check if dev branch exists
run: |
if [[ ! -d "dev" ]]; then
echo "dev branch does not exist"
echo "Creating dev branch"
git checkout -b dev
git push -u origin dev
git checkout -b dev origin/dev
else
echo "dev branch already exists"
git checkout dev
git pull origin dev
fi
- name: Add commit to dev branch
run: echo "Dummy commit" >> dummy-file.txt && git add dummy-file.txt && git commit -m "Dummy commit" && git push origin dev

- name: Render template
id: render-template
uses: chuhlomin/[email protected]
Expand All @@ -43,3 +42,4 @@ jobs:
base: 'main'
title: "Weekly PR - $(date +'%d %B %Y')"
body: ${{ steps.render-template.outputs.result }}
delete-branch: true

1 comment on commit 05a91c0

@vercel
Copy link

@vercel vercel bot commented on 05a91c0 Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.