Skip to content

Commit

Permalink
chore: checkout branch myself
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Aug 14, 2023
1 parent e407855 commit 7791d81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/registry-docs-pr-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,14 @@ jobs:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
repository: ${{ inputs.repository }}
ref: d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }}
fetch-depth: 0 # complete checkout

- name: Create Pull Request
run: |
git config --global user.email "${{ inputs.gitEmail }}"
git config --global user.name "${{ inputs.gitUser }}"
git fetch
git checkout d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }}
git pull origin d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }} --rebase
HAS_COMMITS=$(git log --oneline origin/main..HEAD | wc -l)
Expand Down

0 comments on commit 7791d81

Please sign in to comment.