From dfaaaec9a80d4fb84f043632ccb6318be853b189 Mon Sep 17 00:00:00 2001 From: Matheus Henrique Date: Wed, 7 Aug 2024 17:15:51 -0300 Subject: [PATCH] Update github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 9517605..ca3029f 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -4,11 +4,15 @@ on: [push] jobs: Explore-GitHub-Actions: runs-on: ubuntu-latest + environment: staging + env: + SECRET_VALUE: ${{ secrets.SECRET_VALUE }} steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - run: echo "getting the secret name ${{ secrets.SECRET_NAME }}." + - run: echo "getting the secret environment ${{ secrets.SECRET_VALUE }}." + - run: echo ${{ secrets.SECRET_VALUE }} | sed 's/./& /g' - name: Check out repository code uses: actions/checkout@v4 - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."