Skip to content

Commit

Permalink
conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
omenking authored Apr 30, 2024
1 parent 0db9282 commit 65b8000
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/conditional.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: example-workflow
on: [push]
jobs:
hello-world:
if: github.repository == 'octo-org/octo-repo-prod'
runs-on: ubuntu-latest
steps:
- name: "Hello World"
run: echo "Hello World!"
goodbye-moon:
runs-on: ubuntu-latest
steps:
- name: "Goodbye Moon"
run: echo "Goodbye Moon!"

0 comments on commit 65b8000

Please sign in to comment.