-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pre-commit-ci/initial
initial commit
- Loading branch information
Showing
8 changed files
with
1,866 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: (internal) | ||
description: (internal) | ||
inputs: | ||
name: | ||
required: true | ||
file: | ||
required: true | ||
runs: | ||
using: node20 | ||
main: main.mjs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import child_process from 'child_process'; | ||
|
||
const args = ['dist/index.js', process.env.INPUT_NAME, process.env.INPUT_FILE]; | ||
child_process.execFileSync('node', args, {stdio: 'inherit'}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main, test-me-*] | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
- run: npm i | ||
- run: npm run package | ||
- uses: ./.github/actions/internal | ||
with: | ||
name: dist | ||
file: dist/index.js |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/dist | ||
/node_modules |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {DefaultArtifactClient} from '@actions/artifact' | ||
|
||
if (process.argv.length < 4) { | ||
console.error('usage `upload-artifact-cli artifact-name file [file ...]`'); | ||
process.exit(1); | ||
} | ||
|
||
await new DefaultArtifactClient().uploadArtifact( | ||
process.argv[2], | ||
process.argv.slice(3), | ||
'.', | ||
{retentionDays: 1} | ||
); |
Oops, something went wrong.