Create missing-ref-issue.yml

This commit is contained in:
Ori Yechieli 2024-11-17 13:25:26 +02:00 committed by GitHub
parent cbb722410c
commit c9ba001426
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

23
.github/workflows/missing-ref-issue.yml vendored Normal file
View File

@ -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