From f58ab7734de4f303f0cb64bf8bebf168c6f3fbd5 Mon Sep 17 00:00:00 2001 From: Ori Yechieli <2827449+oriy@users.noreply.github.com> Date: Sun, 17 Nov 2024 13:29:24 +0200 Subject: [PATCH] Create test-missing-git-ref.yaml --- .github/workflows/test-missing-git-ref.yaml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test-missing-git-ref.yaml diff --git a/.github/workflows/test-missing-git-ref.yaml b/.github/workflows/test-missing-git-ref.yaml new file mode 100644 index 0000000..407f9a2 --- /dev/null +++ b/.github/workflows/test-missing-git-ref.yaml @@ -0,0 +1,23 @@ +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: 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 commit -am 'test ref merge' + git push --force origin "${prBranch}" + gh pr create --fill-first +