Skip to content

Commit

Permalink
Add parameters for variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Brocco committed Nov 10, 2023
1 parent d0db367 commit 73dfa18
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ inputs:
description: 'The version of node to use (default: 20)'
required: false
default: 20
username:
description: 'The username for authentication'
required: true
password:
description: 'The password/token for authentication'
required: true

runs:
using: 'composite'
Expand All @@ -16,8 +22,8 @@ runs:
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ inputs.username }}
password: ${{ inputs.password }}

# Set up node with the specified version
- uses: actions/setup-node@v3 v${{ inputs.node-version }}
Expand All @@ -26,4 +32,4 @@ runs:
registry-url: https://npm.pkg.github.com
scope: "@neverendingsupport"
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ inputs.password }}

0 comments on commit 73dfa18

Please sign in to comment.