Skip to content

Commit

Permalink
[github] actions should only run for the elastic repo (elastic#113888)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders authored Oct 1, 2024
1 parent 2c10a18 commit b03fbac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docs-preview-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on:
pull_request_target:
types: [opened]
paths:
- '**.asciidoc'
- "**.asciidoc"

jobs:
doc-preview:
if: github.repository == 'elastic/elasticsearch'
permissions:
pull-requests: write
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:
jobs:
validation:
name: "Validation"
if: github.repository == 'elastic/elasticsearch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/sync-main-to-jdk-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
name: "Merge main to openjdk23-bundle branch"
on:
schedule:
- cron: '30 17 * * *'
- cron: "30 17 * * *"
workflow_dispatch: {}

jobs:
merge-branch:
if: github.repository == 'elastic/elasticsearch'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -15,6 +16,6 @@ jobs:
- name: merge
uses: devmasx/[email protected]
with:
type: 'now'
type: "now"
target_branch: openjdk23-bundle
github_token: ${{ secrets.ELASTICSEARCHMACHINE_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/updatecli-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ name: updatecli-compose
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * *'
- cron: "0 6 * * *"

permissions:
contents: read

jobs:
compose:
if: github.repository == 'elastic/elasticsearch'
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit b03fbac

Please sign in to comment.