Skip to content

Commit b8c00e0

Browse files
committed
Allow manual runs of cron workflows
1 parent 6670654 commit b8c00e0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/create-scheduled-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111

1212
jobs:
1313
get-changed-metadata:
14+
if: ${{ github.repository == 'oracle/graalvm-reachability-metadata' }}
1415
name: "📋 Get a list of changed metadata"
1516
runs-on: "ubuntu-22.04"
1617
timeout-minutes: 5
@@ -35,7 +36,7 @@ jobs:
3536
3637
release:
3738
needs: get-changed-metadata
38-
if: needs.get-changed-metadata.result == 'success' && needs.get-changed-metadata.outputs.none-found != 'true'
39+
if: ${{ (needs.get-changed-metadata.result == 'success' && needs.get-changed-metadata.outputs.none-found != 'true') && (github.event_name != 'schedule' || github.repository == 'oracle/graalvm-reachability-metadata') }}
3940
name: "🚀 Create a release"
4041
runs-on: "ubuntu-22.04"
4142
env:

.github/workflows/scan-docker-images.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
scan-images:
14+
if: ${{ github.event_name != 'schedule' || github.repository == 'oracle/graalvm-reachability-metadata' }}
1415
name: "🔎 Scan docker images"
1516
runs-on: "ubuntu-22.04"
1617
steps:
@@ -31,5 +32,5 @@ jobs:
3132
if: github.event_name == 'pull_request'
3233
run: ./gradlew checkAllowedDockerImages --baseCommit=${{ github.event.pull_request.base.sha }} --newCommit=${{ github.event.pull_request.head.sha }}
3334
- name: "🔎 Check all docker images"
34-
if: github.event_name != 'pull_request' && github.repository == 'oracle/graalvm-reachability-metadata'
35+
if: github.event_name != 'pull_request'
3536
run: ./gradlew checkAllowedDockerImages

.github/workflows/verify-new-library-version-compatibility.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ concurrency:
1515

1616
jobs:
1717
get-all-libraries:
18+
if: ${{ github.event_name != 'schedule' || github.repository == 'oracle/graalvm-reachability-metadata' }}
1819
name: "📋 Get list of all supported libraries with newer versions"
1920
runs-on: ubuntu-22.04
2021
timeout-minutes: 5
@@ -52,6 +53,7 @@ jobs:
5253
git push origin "${{ steps.set-branch-name.outputs.branch }}"
5354
5455
test-all-metadata:
56+
if: ${{ github.event_name != 'schedule' || github.repository == 'oracle/graalvm-reachability-metadata' }}
5557
name: "🧪 ${{ matrix.item.name }}"
5658
runs-on: ubuntu-22.04
5759
needs: get-all-libraries
@@ -254,7 +256,7 @@ jobs:
254256
permissions: write-all
255257
env:
256258
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
257-
if: ${{ always() }}
259+
if: ${{ always() && (github.event_name != 'schedule' || github.repository == 'oracle/graalvm-reachability-metadata') }}
258260
needs:
259261
- get-all-libraries
260262
- test-all-metadata

0 commit comments

Comments
 (0)