Skip to content

Commit

Permalink
Merge pull request #3 from 9Rune5/runem/release
Browse files Browse the repository at this point in the history
Check event_name and set environment
  • Loading branch information
9Rune5 authored Nov 10, 2023
2 parents b6e50bb + cf8d545 commit 85eff98
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push, pull_request]
on:
push:
branches: ["main"]
pull_request:
release:
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
env:
Environment: ${{ github.event_name == 'release' && 'prod' || 'dev' }}
steps:
- run: echo "We are targetting the '$Environment' environment."
- 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 85eff98

Please sign in to comment.