Skip to content

Commit

Permalink
Create checkRun
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed Sep 4, 2022
1 parent d172fc8 commit b256efd
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,28 @@ jobs:
with:
environment-suffix: /app2

- uses: cybozu/octoken-action@v1
id: octoken-e2e-app
with:
github_app_id: ${{ secrets.E2E_GITHUB_APP_ID }}
github_app_private_key: ${{ secrets.E2E_GITHUB_APP_PRIVATE_KEY }}
- uses: actions/github-script@v6
id: commit
with:
github-token: ${{ steps.octoken-e2e-app.outputs.token }}
script: |
core.setOutput('sha', context.payload.pull_request?.head?.sha ?? github.sha)
const head_sha = context.payload.pull_request?.head?.sha ?? github.sha
const { data: app1 } = await github.rest.checks.create({
...context.repo,
name: `app1`,
head_sha,
})
const { data: app2 } = await github.rest.checks.create({
...context.repo,
name: `app2`,
head_sha,
})
core.setOutput('sha', head_sha)
- run: make -C e2e_test test1
env:
Expand Down

0 comments on commit b256efd

Please sign in to comment.