Update action.yml #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test for workflow | |
on: push | |
defaults: | |
run: | |
shell: bash -euxo pipefail {0} | |
jobs: | |
generate-a-secret-output: | |
runs-on: ubuntu-latest | |
steps: | |
- id: sets-a-secret | |
name: Generate, mask, and output a secret | |
run: | | |
the_secret=$((RANDOM)) | |
echo "::add-mask::$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 }}" |