Skip to content

Commit

Permalink
Create secret-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lefonge authored Dec 14, 2024
1 parent 7993ec6 commit 0260891
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/secret-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: secret demo
run-name: Testing secret variable

on: [push]

env:
owner_name: Abhi
my_repo_var_value: ${{ vars.MY_REPO_VAR }}
my_secret_var_value: ${{ secrets.MY_SECRET }}

jobs:
use_env_var:
runs-on: ubuntu-latest
steps:
- run: echo "My secret data -> $my_secret_var_value"

0 comments on commit 0260891

Please sign in to comment.