Skip to content

Commit

Permalink
Update push-image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
felipementel authored Oct 16, 2023
1 parent 9700fea commit fd317f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ jobs:

- id: sets-a-secret
name: Generate, mask, and output a secret
shell: pwsh
run: |
$xml = [Xml] (Get-Content ./src/DEPLOY.Cachorro.Api/DEPLOY.Cachorro.Api.csproj)
$version = $xml.Project.PropertyGroup.Version
the_secret=$((RANDOM))
echo "$the_secret"
echo "secret-number=$the_secret" >> "$GITHUB_OUTPUT"
- name: Use that secret output (protected by a mask)
run: |
echo "the secret number is ${{ steps.sets-a-secret.outputs.secret-number }}"
Expand Down

0 comments on commit fd317f2

Please sign in to comment.