-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - https://stackoverflow.com/a/66206183 - pascalgn/automerge-action#170 (comment) * fix * debug log * fix * client-payload
- Loading branch information
1 parent
484f6ef
commit b9734ea
Showing
3 changed files
with
35 additions
and
17 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 |
---|---|---|
|
@@ -53,7 +53,7 @@ jobs: | |
- name: Upload to codecov.io | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v1 | ||
|
@@ -76,4 +76,20 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | ||
- run: cargo build --verbose | ||
- run: cargo test --verbose | ||
- run: cargo test --verbose | ||
|
||
checks_complete: | ||
name: Trigger automerge | ||
runs-on: ubuntu-latest | ||
needs: | ||
- check | ||
- coverage | ||
- build_and_test | ||
steps: | ||
- name: Trigger automerge | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
event-type: checks-complete | ||
client-payload: '{"github": ${{ toJson(github) }}}' | ||
if: github.event_name == 'pull_request' |
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions-rs/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.ACCESS_TOKEN }} |