Skip to content

Commit

Permalink
move variables to env block (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Jun 13, 2022
1 parent c9723ee commit 8c5d1f5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions action.yaml
Expand Up @@ -3,10 +3,13 @@ description: Deploys a Maven project to the Jenkins Artifactory repository in co
inputs:
GITHUB_TOKEN:
required: true
description: Token to run with, defaults to the repository GITHUB_TOKEN
MAVEN_USERNAME:
required: true
description: Maven username used for deploying the plugin jar to Jenkins Artifactory Repository
MAVEN_TOKEN:
required: true
description: Maven token used for deploying the plugin jar to Jenkins Artifactory Repository
INTERESTING_CATEGORIES:
required: true
description: |
Expand All @@ -16,6 +19,11 @@ inputs:
default: '[πŸ’₯πŸš¨πŸŽ‰πŸ›βš πŸš€πŸŒπŸ‘·]|:(boom|tada|construction_worker):'
runs:
using: composite
steps:
- run: GITHUB_TOKEN=${{ inputs.GITHUB_TOKEN }} MAVEN_USERNAME=${{ inputs.MAVEN_USERNAME }} MAVEN_TOKEN=${{ inputs.MAVEN_TOKEN }} INTERESTING_CATEGORIES='${{ inputs.INTERESTING_CATEGORIES }}' $GITHUB_ACTION_PATH/run.sh
steps:
- run: $GITHUB_ACTION_PATH/run.sh
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ inputs.MAVEN_USERNAME }}
MAVEN_TOKEN: ${{ inputs.MAVEN_TOKEN }}
INTERESTING_CATEGORIES: ${{ inputs.INTERESTING_CATEGORIES }}

0 comments on commit 8c5d1f5

Please sign in to comment.