Skip to content

Commit

Permalink
try powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
makspll committed Dec 2, 2024
1 parent 195a26c commit a374c78
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ jobs:
steps:
- name: Mask secrets
run: |
cat $GITHUB_EVENT_PATH
$CARGO_REGISTRY_TOKEN=$(jq -r '.inputs["cargo-registry-token"]' $GITHUB_EVENT_PATH)
echo ::add-mask::$CARGO_REGISTRY_TOKEN
echo $CARGO_REGISTRY_TOKEN=$CARGO_REGISTRY_TOKEN >> $GITHUB_ENV
$CARGO_REGISTRY_TOKEN = (jq -r '.inputs["cargo-registry-token"]' $env:GITHUB_EVENT_PATH)
Write-Output "::add-mask::$CARGO_REGISTRY_TOKEN"
Write-Output "CARGO_REGISTRY_TOKEN=$CARGO_REGISTRY_TOKEN" >> $env:GITHUB_ENV
- name: Test secret mask
run: echo "this is not the secret you fool ${{ env.CARGO_REGISTRY_TOKEN}} "
- name: Checkout repository
Expand Down

0 comments on commit a374c78

Please sign in to comment.