Skip to content

Commit e2f4f5b

Browse files
committed
[SPARK-52179][INFRA][FOLLOW-UP] Skip dryruns in forked repository
### What changes were proposed in this pull request? This PR is a followup of #50911 that skip dryruns in forked repository. ### Why are the changes needed? To avoid using unnecessary resources in forked repository. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #50984 from HyukjinKwon/SPARK-52179-followup2. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
1 parent 1c2b1e0 commit e2f4f5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ jobs:
7676
name: Release Apache Spark (dryrun and RC)
7777
runs-on: ubuntu-latest
7878
# Do not allow dispatching this workflow manually in the main repo.
79-
if: ${{ !(github.repository == 'apache/spark' && inputs.branch != '' && inputs.release-version != '') }}
79+
# and skip this workflow in forked repository when running as a
80+
# scheduled job (dryrun).
81+
if: ${{ (github.repository == 'apache/spark') != (inputs.branch != '' && inputs.release-version != '') }}
8082
steps:
8183
- name: Checkout Spark repository
8284
uses: actions/checkout@v4

0 commit comments

Comments
 (0)