Skip to content

Commit

Permalink
Merge pull request #2 from a-masterov/test2
Browse files Browse the repository at this point in the history
Test2
  • Loading branch information
a-masterov authored Oct 21, 2024
2 parents 30d50a4 + d6032f8 commit fa0afac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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 }}"
10 changes: 0 additions & 10 deletions test.yml

This file was deleted.

0 comments on commit fa0afac

Please sign in to comment.