Skip to content

Commit

Permalink
secrets examples
Browse files Browse the repository at this point in the history
  • Loading branch information
omenking committed Apr 30, 2024
1 parent 92c27f3 commit b030c3c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Use API Key

on:
push:
branches:
- main

jobs:
make-api-request:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use API Key
run: |
echo "Using My Secret 1: ${{ secrets.MY_SECRET }}"
echo "Using My Secret 2 $MY_SECRET"
echo "Using My Secret 3:mask ::add-mask::${{ secrets.MY_SECRET }}"
env:
MY_SECRET: ${{ secrets.MY_SECRET }}

0 comments on commit b030c3c

Please sign in to comment.