Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewland committed May 23, 2024
1 parent a7de1d4 commit ecb7e22
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/required.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ on:

jobs:
success:
if: contains(fromJSON('["merge_group", "pull_request"]'), github.event.workflow_run.event)
if:
contains(fromJSON('["merge_group", "pull_request"]'),
github.event.workflow_run.event)
name: Create appropriate status
runs-on: ubuntu-latest
steps:
Expand Down
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
# Required workflows

Configure required workflows in your repository. Use path filters. Be free.

## Usage

```
name: Required
on:
workflow_run:
workflows:
- Check Transpiled JavaScript
- Continuous Integration
- Lint Codebase
types:
- completed
jobs:
success:
if: contains(fromJSON('["merge_group", "pull_request"]'), github.event.workflow_run.event)
name: Create appropriate status
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
status-name: Required
must-succeed-if-run: |
Check Transpiled JavaScript
Continuous Integration
Lint Codebase
```

0 comments on commit ecb7e22

Please sign in to comment.