Skip to content

Commit

Permalink
Fix Job Execution if Statement
Browse files Browse the repository at this point in the history
  • Loading branch information
RudraSen2 authored Jul 11, 2023
1 parent ec4c6ed commit 2087494
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dmg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
jobs:
build-dmg:
runs-on: macos-latest
if: github.repository != 'Comp-Labs/Download-macOS'
if: github.repository == 'Comp-Labs/Download-macOS'
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
jobs:
build-iso:
runs-on: macos-latest
if: github.repository != 'Comp-Labs/Download-macOS'
if: github.repository == 'Comp-Labs/Download-macOS'
steps:
- uses: actions/checkout@v3

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/list-installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
softwareupdate
softwareupdate --list-full-installers
- name: Send Report
if: github.repository != 'Comp-Labs/Download-macOS'
if: github.repository == 'Comp-Labs/Download-macOS'
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
Expand All @@ -33,7 +33,7 @@ jobs:
ignore_cert: true
convert_markdown: true
- name: Skipped Job Explanation
if: github.repository != 'Comp-Labs/Download-macOS'
if: github.repository == 'Comp-Labs/Download-macOS'
run: echo "The 'Send Report' job is skipped because it's running on a forked repository. It can run only on the original repository - Comp-Labs/Download-macOS"
re-run-failed-jobs:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
jobs:
build-zip:
runs-on: macos-latest
if: github.repository != 'Comp-Labs/Download-macOS'
if: github.repository == 'Comp-Labs/Download-macOS'
steps:
- uses: actions/checkout@v3

Expand Down

0 comments on commit 2087494

Please sign in to comment.