forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved queue action to use master env
Also to execute action by itself
- Loading branch information
Showing
1 changed file
with
5 additions
and
13 deletions.
There are no files selected for viewing
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
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 | ||
|
@@ -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 }} |