Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi committed Mar 14, 2023
1 parent 080e211 commit 41c06e7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/do-not-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
types:
- labeled
- unlabeled
workflow_call:

permissions:
pull-requests: read
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/fallback-pr-create.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Fallback pr create
on:
pull_request:
pull_request_review:
pull_request_review_comment:

jobs:
get-statusCheckRollup:
runs-on: ubuntu-22.04
outputs:
status: ${{ steps.step1.outputs.status }}
steps:
- id: set-statusCheckRollup
run: echo "status=${{ toJSON(${gh pr view 215 --json statusCheckRollup -q '.statusCheckRollup[].name'}) }}" >> "$GITHUB_OUTPUT"
pr:
name: 'pr'
needs: get-statusCheckRollup
runs-on: ubuntu-22.04
steps:
- name: check_do-not-merge
run: |
echo "${{ needs.get-statusCheckRollup }}"
if ${{ !contains(fromJSON(needs.get-statusCheckRollup), '') }}; then
true
- name: do-not-merge
uses: ./github/workflows/do-not-merge.yml

0 comments on commit 41c06e7

Please sign in to comment.