Skip to content

Commit

Permalink
Merge pull request #5 from 9Rune5/runem/published
Browse files Browse the repository at this point in the history
Add environment support
  • Loading branch information
9Rune5 authored Nov 10, 2023
2 parents f2cd530 + eb78eb7 commit b11c79d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:
types: ["published"]
jobs:
Explore-GitHub-Actions:
environment: ${{ github.event_name == 'release' && 'Production' || 'Development' }}
runs-on: ubuntu-latest
env:
Environment: ${{ github.event_name == 'release' && 'prod' || 'dev' }}
steps:
- run: echo "We are targetting the '$Environment' environment."
- run: echo "Our variable is '${{ vars.MYVAR }}'"
- 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 }}."
Expand Down

0 comments on commit b11c79d

Please sign in to comment.