Skip to content

Commit 2c2cece

Browse files
committed
WIP: check to add commit statuts
1 parent d6aedf6 commit 2c2cece

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Create Commit Status
2+
3+
on: pull_request
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
create-commit-status:
10+
name: Create Commit Status
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Analyze content.txt
18+
id: analyze
19+
uses: actions/github-script@v7
20+
with:
21+
script: |
22+
const createCommitStatus = require('./.github/workflows/scripts/create-commit-status.js')
23+
await createCommitStatus({ github, context, core });
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// @ts-check
2+
3+
const { readFile } = require("fs/promises");
4+
const { join } = require("path");
5+
const { env } = require("process");
6+
7+
/**
8+
* @param {import('github-script').AsyncFunctionArguments} AsyncFunctionArguments
9+
*/
10+
module.exports = async ({ github, context, core }) => {
11+
core.info("hello from create commit status");
12+
};

0 commit comments

Comments
 (0)