Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf1dcb0

Browse files
committed
Add nicer status badges and workflow names
1 parent 626af12 commit cf1dcb0

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: CI
2+
13
on:
24
push: {branches: main}
35
pull_request: {branches: main}

.github/workflows/integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Integration
2+
13
on:
24
push: {branches: main}
35

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# github-script ![.github/workflows/integration.yml](https://github.com/actions/github-script/workflows/.github/workflows/integration.yml/badge.svg?event=push) ![.github/workflows/ci.yml](https://github.com/actions/github-script/workflows/.github/workflows/ci.yml/badge.svg?event=push) ![.github/workflows/licensed.yml](https://github.com/actions/github-script/workflows/Licensed/badge.svg?event=push)
1+
# actions/github-script
2+
3+
[![.github/workflows/integration.yml](https://github.com/actions/github-script/workflows/.github/workflows/Integration/badge.svg?event=push&branch=main)](https://github.com/actions/github-script/actions?query=workflow%3AIntegration+branch%3Amain+event%3Apush)
4+
[![.github/workflows/ci.yml](https://github.com/actions/github-script/workflows/.github/workflows/CI/badge.svg?event=push&branch=main)](https://github.com/actions/github-script/actions?query=workflow%3ACI+branch%3Amain+event%3Apush)
5+
[![.github/workflows/licensed.yml](https://github.com/actions/github-script/workflows/Licensed/badge.svg?event=push&branch=main)](https://github.com/actions/github-script/actions?query=workflow%3ALicensed+branch%3Amain+event%3Apush)
26

37
This action makes it easy to quickly write a script in your workflow that
48
uses the GitHub API and the workflow run context.
@@ -202,7 +206,7 @@ jobs:
202206
console.log(script({github, context}))
203207
```
204208

205-
*Note that the script path given to `require()` must be an **absolute path** in this case, hence using [`GITHUB_WORKSPACE`](https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables).*
209+
_Note that the script path given to `require()` must be an **absolute path** in this case, hence using [`GITHUB_WORKSPACE`](https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables)._
206210

207211
And then export a function from your module:
208212

@@ -223,7 +227,6 @@ Additionally, you'll want to use the [checkout
223227
action](https://github.com/actions/checkout) to make sure your script file is
224228
available.
225229

226-
227230
This action makes it easy to quickly write a script in your workflow that
228231
uses the GitHub API and the workflow run context.
229232

@@ -426,7 +429,7 @@ jobs:
426429
console.log(script({github, context}))
427430
```
428431

429-
*Note that the script path given to `require()` must be an **absolute path** in this case, hence using [`GITHUB_WORKSPACE`](https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables).*
432+
_Note that the script path given to `require()` must be an **absolute path** in this case, hence using [`GITHUB_WORKSPACE`](https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables)._
430433

431434
And then export a function from your module:
432435

0 commit comments

Comments
 (0)