missing-git-ref-issue #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: missing-git-ref-issue | |
on: | |
workflow_dispatch: | |
jobs: | |
open-close-reopen-pr: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Git config | |
run: | | |
git config --global user.name oriy | |
git config --global user.email [email protected] | |
- name: Push dummy PR | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
prBranch=oriy/testRefMerge | |
git branch -d "${prBranch}" 2>/dev/null || true | |
git checkout -b "${prBranch}" | |
touch dummy && git add dummy | |
git commit -am 'test ref merge' | |
git push --force origin "${prBranch}" | |
gh pr create --fill --repo $GITHUB_REPOSITORY | |