Skip to content

Commit

Permalink
add url
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Sep 18, 2024
1 parent 7932e5d commit cc3e909
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/rocm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ env:
jobs:
test:
runs-on: ubuntu-latest # XXX
env:
RUN_URL: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
steps:
- name: Generate Token (Pending)
id: generate-token-pre
Expand All @@ -24,14 +26,14 @@ jobs:
with:
github-token: ${{ steps.generate-token-pre.outputs.token }}
script: |
console.log(JSON.stringify(context.payload, null, 2));
github.rest.repos.createCommitStatus({
owner: process.env.SOURCE_REPO_OWNER,
repo: process.env.SOURCE_REPO_NAME,
sha: context.payload.client_payload.sha,
state: 'pending',
context: context.payload.action,
target_url: process.env.RUN_URL,
description: 'In progress'
context: context.payload.action,
})
- name: 'Checkout'
Expand Down Expand Up @@ -64,8 +66,9 @@ jobs:
repo: process.env.SOURCE_REPO_NAME,
sha: context.payload.client_payload.sha,
state: 'success',
target_url: process.env.RUN_URL,
description: 'Successful',
context: context.payload.action,
description: 'Successful'
})
- name: 'Update Commit Status (Failure)'
Expand All @@ -79,6 +82,7 @@ jobs:
repo: process.env.SOURCE_REPO_NAME,
sha: context.payload.client_payload.sha,
state: 'failure',
target_url: process.env.RUN_URL,
description: 'Failed',
context: context.payload.action,
description: 'Failed'
})

0 comments on commit cc3e909

Please sign in to comment.