Skip to content

Commit 4d91525

Browse files
committed
first version
1 parent 631f0b6 commit 4d91525

File tree

9 files changed

+7668
-8575
lines changed

9 files changed

+7668
-8575
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,16 @@ jobs:
1717
npm run all
1818
test: # make sure the action works on a clean machine without building
1919
runs-on: ubuntu-latest
20+
permissions:
21+
packages: read
2022
steps:
2123
- uses: actions/checkout@v2
2224
- uses: ./
25+
id: get_package_version_id
2326
with:
24-
milliseconds: 1000
27+
packageOwner: SpotlerSoftware
28+
packageName: spotler-library
29+
packageVersionName: 0.0.0-github-master-SNAPSHOT
30+
githubToken: $GITHUB_TOKEN
31+
- name: 'Echo output'
32+
run: echo ${{ steps.get_package_version_id.outputs.packageVersionId}}

action.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1-
name: 'Your name here'
2-
description: 'Provide a description here'
3-
author: 'Your name or organization here'
1+
name: 'get-package-version-id'
2+
description: 'Gets package version id'
3+
author: '808Brinks'
44
inputs:
5-
milliseconds: # change this
5+
packageOwner: # change this
66
required: true
7-
description: 'input description here'
8-
default: 'default value if applicable'
7+
description: 'Owner of the package'
8+
packageName: # change this
9+
required: true
10+
description: 'Name of the package'
11+
packageVersionName: # change this
12+
required: true
13+
description: 'Name version of the package'
14+
githubToken:
15+
required: true
16+
description: 'Github token'
17+
outputs:
18+
packageVersionId:
19+
description: 'The package version id'
920
runs:
1021
using: 'node16'
1122
main: 'dist/index.js'

0 commit comments

Comments
 (0)