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

Skip to content

Commit 3e8cf0f

Browse files
authored
Merge branch 'main' into setup-dependabot
2 parents adc04e7 + d705669 commit 3e8cf0f

File tree

9 files changed

+1210
-430
lines changed

9 files changed

+1210
-430
lines changed

.github/workflows/check-dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
id: diff
3636

3737
# If index.js was different than expected, upload the expected version as an artifact
38-
- uses: actions/upload-artifact@v3
38+
- uses: actions/upload-artifact@v4
3939
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
4040
with:
4141
name: dist

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
result-encoding: string
4040
- run: |
4141
echo "- Validating relative require output"
42-
if [[ "${{steps.relative-require.outputs.result}}" != "github-script" ]]; then
42+
if [[ "${{steps.relative-require.outputs.result}}" != "@actions/github-script" ]]; then
4343
echo $'::error::\u274C' "Expected '$expected', got ${{steps.relative-require.outputs.result}}"
4444
exit 1
4545
fi
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Publish Immutable Action Version'
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
13+
packages: write
14+
15+
steps:
16+
- name: Checking out
17+
uses: actions/checkout@v4
18+
- name: Publish
19+
id: publish
20+
uses: actions/[email protected]

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npm run pre-commit && git add dist/

.licenses/npm/undici.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# actions/github-script
22

3-
[![.github/workflows/integration.yml](https://github.com/actions/github-script/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/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)
3+
[![Integration](https://github.com/actions/github-script/actions/workflows/integration.yml/badge.svg?branch=main&event=push)](https://github.com/actions/github-script/actions/workflows/integration.yml)
4+
[![CI](https://github.com/actions/github-script/actions/workflows/ci.yml/badge.svg?branch=main&event=push)](https://github.com/actions/github-script/actions/workflows/ci.yml)
5+
[![Licensed](https://github.com/actions/github-script/actions/workflows/licensed.yml/badge.svg?branch=main&event=push)](https://github.com/actions/github-script/actions/workflows/licensed.yml)
66

77
This action makes it easy to quickly write a script in your workflow that
88
uses the GitHub API and the workflow run context.
99

10-
To use this action, provide an input named `script` that contains the body of an asynchronous function call.
10+
To use this action, provide an input named `script` that contains the body of an asynchronous JavaScript function call.
1111
The following arguments will be provided:
1212

1313
- `github` A pre-authenticated
@@ -429,15 +429,15 @@ jobs:
429429
### Use scripts with jsDoc support
430430

431431
If you want type support for your scripts, you could use the command below to install the
432-
`github-script` type declaration.
432+
`@actions/github-script` type declaration.
433433
```sh
434-
$ npm i -D @types/github-script@github:actions/github-script
434+
$ npm i -D @actions/github-script@github:actions/github-script
435435
```
436436

437437
And then add the `jsDoc` declaration to your script like this:
438438
```js
439439
// @ts-check
440-
/** @param {import('@types/github-script').AsyncFunctionArguments} AsyncFunctionArguments */
440+
/** @param {import('@actions/github-script').AsyncFunctionArguments} AsyncFunctionArguments */
441441
export default async ({ core, context }) => {
442442
core.debug("Running something at the moment");
443443
return context.actor;

0 commit comments

Comments
 (0)