Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Oct 13, 2024
1 parent 6818b84 commit 6cdf276
Show file tree
Hide file tree
Showing 6 changed files with 1,850 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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
- run: node dist/index.js output dist/index.js
name: upload artifact
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist
/node_modules
13 changes: 13 additions & 0 deletions index.ts
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}
);
Loading

0 comments on commit 6cdf276

Please sign in to comment.