Skip to content

Commit 6cdf276

Browse files
committed
initial commit
1 parent 6818b84 commit 6cdf276

File tree

6 files changed

+1850
-0
lines changed

6 files changed

+1850
-0
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on:
2+
pull_request:
3+
push:
4+
branches: [main, test-me-*]
5+
6+
jobs:
7+
main:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 20.x
14+
- run: npm i
15+
- run: npm run package
16+
- run: node dist/index.js output dist/index.js
17+
name: upload artifact

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/node_modules

index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import {DefaultArtifactClient} from '@actions/artifact'
2+
3+
if (process.argv.length < 4) {
4+
console.error('usage `upload-artifact-cli artifact-name file [file ...]`');
5+
process.exit(1);
6+
}
7+
8+
await new DefaultArtifactClient().uploadArtifact(
9+
process.argv[2],
10+
process.argv.slice(3),
11+
'.',
12+
{retentionDays: 1}
13+
);

0 commit comments

Comments
 (0)