-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
59 additions
and
37 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
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,14 +1,19 @@ | ||
name: StandardRB | ||
|
||
on: [push] | ||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: StandardRB Linter | ||
uses: andrewmcodes/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RUBY_VERSION: 2.7 | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.2' | ||
bundler-cache: true | ||
- name: Install StandardRB | ||
run: gem install standard | ||
- name: Run StandardRB | ||
run: standardrb |
This file was deleted.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
|
@@ -191,7 +191,7 @@ jobs: | |
To inspect the names as they appear to the API: | ||
|
||
```bash | ||
curl -i -u username:$token \ | ||
curl -u username:$token \ | ||
https://api.github.com/repos/OWNER/REPO/commits/REF/check-runs \ | ||
-H 'Accept: application/vnd.github.antiope-preview+json' | jq '[.check_runs[].name]' | ||
``` | ||
|
@@ -220,6 +220,38 @@ jobs: | |
... | ||
``` | ||
|
||
#### Using running workflow name in reusable workflows | ||
|
||
Using this action in a reusable workflow means accepting a constraint that all calling jobs will have the same name. For example, all calling workflows must call their jobs `caller` (or some more relevant constant) so that if the reused workflow containing the job that uses this action to wait is called `callee` then the task can successfully wait on `caller / callee`. Working example follows. | ||
|
||
.github/workflows/caller.yml | ||
|
||
```yml | ||
on: | ||
push: | ||
jobs: | ||
caller: | ||
uses: ./.github/workflows/callee.yml | ||
``` | ||
|
||
.github/workflows/callee.yml | ||
|
||
```yml | ||
on: | ||
workflow_call: | ||
jobs: | ||
callee: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for Other Workflows | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
running-workflow-name: 'caller / callee' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 10 | ||
``` | ||
|
||
### Allowed conclusions | ||
|
||
By default, checks that conclude with either `success` or `skipped` are allowed, and anything else is not. You may configure this with the `allowed-conclusions` option, which is a comma-separated list of conclusions. | ||
|
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
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