Difference between revisions of "$GITHUB OUTPUT"
Jump to navigation
Jump to search
(Created page with " <pre> on: push jobs: generate-a-secret-output: runs-on: ubuntu-latest steps: - id: sets-a-secret name: Generate, mask, and output a secret ru...") |
|||
Line 1: | Line 1: | ||
− | + | * https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions | |
<pre> | <pre> | ||
Line 17: | Line 17: | ||
echo "the secret number is ${{ steps.sets-a-secret.outputs.secret-number }}" | echo "the secret number is ${{ steps.sets-a-secret.outputs.secret-number }}" | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | |||
+ | {{GHA}} |
Revision as of 13:20, 13 June 2024
on: push 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 }}"
GitHub Actions, act, .github/workflows/
, ~/actions-runner/
, svc.sh
, deploy:, run:, runs-on:
, uses:
, steps:
, jobs:
, on:, env:, uses:, script:, continue-on-error:, template:, aws-actions, inputs:
, GITHUB_ENV, needs:, github.
, GitHub runner, my-docker-publish.yml, GitHub Actions variables, GitHub Actions contexts, GitHub Actions Importer, If:, SLSA, Actions Runner Controller (ARC), $GITHUB OUTPUT
, notify:
, Marketplace, GITHUB_TOKEN
Advertising: