Skip to content

Commit

Permalink
Release workflow : change to choice input and fix (#116)
Browse files Browse the repository at this point in the history
Signed-off-by: BOUHOURS Antoine <antoine.bouhours@rte-france.com>
  • Loading branch information
antoinebhs authored and flo-dup committed Nov 5, 2024
1 parent 405729c commit 65a3dd9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,24 @@ on:
workflow_dispatch:
inputs:
versionType:
description: version type increment (major | minor | patch)
description: version type increment
required: true
type: choice
options:
- major
- minor
- patch
nodeAuthToken:
description: NPM access token
required: true
type: string

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Mask Node Auth Token
- run: |
run: |
NODE_AUTH_TOKEN=$(jq -r '.inputs.nodeAuthToken' $GITHUB_EVENT_PATH)
echo ::add-mask::$NODE_AUTH_TOKEN
echo NODE_AUTH_TOKEN=$NODE_AUTH_TOKEN >> $GITHUB_ENV
Expand Down

0 comments on commit 65a3dd9

Please sign in to comment.