Skip to content

Commit

Permalink
moved queue action to use master env
Browse files Browse the repository at this point in the history
Also to execute action by itself
  • Loading branch information
Bullrich committed Nov 20, 2023
1 parent ca8ab0f commit 3881c32
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/merge-queue-action.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
name: Merge-Queue-Status
name: Merge-Queue-Trigger

on:
workflow_run:
workflows:
- Merge-Queue-Trigger
types:
- completed
merge_group:

jobs:
trigger-review-bot:
runs-on: ubuntu-latest
env: master
name: trigger review bot
steps:
- name: Extract content of artifact
id: sha
uses: Bullrich/[email protected]
with:
artifact-name: sha
- name: Generate token
id: app_token
uses: tibdex/github-app-token@v1
Expand All @@ -25,12 +17,12 @@ jobs:
private_key: ${{ secrets.REVIEW_APP_KEY }}
- run: echo "Running with commit $ID"
env:
ID: ${{ steps.sha.outputs.content }}
ID: ${{ github.event.merge_group.head_commit.id }}
- name: Add Merge Queue status check
uses: billyjbryant/create-status-check@v2
with:
authToken: ${{ steps.app_token.outputs.token }}
context: 'review-bot'
description: 'PRs for merge queue gets approved'
state: 'success'
sha: ${{ steps.sha.outputs.content }}
sha: ${{ github.event.merge_group.head_commit.id }}

0 comments on commit 3881c32

Please sign in to comment.