fix(): Test #13
Workflow file for this run
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
name: Test CI | |
on: | |
push: | |
jobs: | |
status: | |
runs-on: ubuntu-latest | |
name: Test commit status | |
steps: | |
- name: Fetch the last commit in the PR | |
id: sha | |
uses: actions/github-script@v7 | |
with: | |
result-encoding: string | |
script: | | |
const { sha, issue: { owner, repo } } = context; | |
const status = await github.request(`POST /repos/${owner}/${repo}/statuses/${sha}`, { | |
owner, | |
repo, | |
sha, | |
state: 'success', | |
target_url: 'https://example.com/build/status', | |
description: 'The build succeeded!', | |
context: 'Test CI / Test commit status' | |
}); | |
return status.data |