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."