Skip to content

fix(): Test

fix(): Test #7

Workflow file for this run

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 { sham, issue: { owner, repo } } = context.issue;
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: 'continuous-integration/jenkins'
});
return status.data.head.sha