-
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.
feat: add setup action for use in GitHub workflows
Signed-off-by: Jakob Steiner <jakob.steiner@glasskube.eu>
- Loading branch information
Showing
4 changed files
with
55 additions
and
2 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,20 @@ | ||
name: Test actions/setup | ||
|
||
on: | ||
push: | ||
paths: | ||
- actions/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: read | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
- name: Setup scout | ||
uses: ./actions/setup | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: scout --version |
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,9 @@ | ||
# Scout Setup Action | ||
|
||
This is a GitHub Workflow Action to setup @glasskube/scout. | ||
|
||
## Inputs | ||
|
||
- `token` (required): The GitHub Token used to authenticate against the GitHub package registry. | ||
You can use ${{ secrets.GITHUB_TOKEN }} or a custom personal access token. | ||
It needs permission to read public packages from the GitHub package registry. |
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,21 @@ | ||
name: Setup @glasskube/scout | ||
description: Install @glasskube/scout globally using npm | ||
inputs: | ||
token: | ||
required: true | ||
description: GitHub Token for NPM registry | ||
outputs: {} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup node.js | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 | ||
with: | ||
node-version: "20" | ||
registry-url: "https://npm.pkg.github.com" | ||
scope: "@glasskube" | ||
- name: Install scout | ||
shell: sh | ||
run: npm install --global @glasskube/scout@0.1.0 # x-release-please-version | ||
env: | ||
NODE_AUTH_TOKEN: ${{ inputs.token }} |
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