Skip to content

Commit

Permalink
make sure starting branch is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudiaComito committed Aug 2, 2023
1 parent 10c8cde commit feb7198
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/merge-release-changes-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.repository }} == 'hemlholtz-analytics/heat'
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: '${{ env.starting_branch }}'
# - uses: actions/checkout@v3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# ref: '${{ env.starting_branch }}'
- name: Delete working branch if it already exists
run: git push --delete origin ${{ env.working_branch }} || true
- name: Create working branch
run: |
git checkout ${{ env.starting_branch }}
git pull
git checkout -b ${{ env.working_branch }}
git push --set-upstream origin ${{ env.working_branch }}
- name: Create a pull request
Expand Down

0 comments on commit feb7198

Please sign in to comment.