Skip to content

Commit

Permalink
Merge pull request #162 from marcfehling/cron
Browse files Browse the repository at this point in the history
github-actions: Only run scheduled jobs on main repository, and no longer on forks.
  • Loading branch information
bangerth authored Sep 29, 2023
2 parents df4282d + 7f4ca8a commit 2a4bb61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ on:
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * SUN'

permissions:
contents: read
issues: write

jobs:
build:
if: (github.event_name == 'schedule' && github.repository == 'dealii/code-gallery') || github.event_name != 'schedule'

name: Build ${{ matrix.build_type }}-dealii:${{ matrix.dealii_version }}-${{ matrix.ubuntu_version }}
runs-on: ubuntu-latest

Expand Down Expand Up @@ -74,7 +76,7 @@ jobs:
numdiff solution-10.vtk test_data/reference-10.vtk
- name: Create issue about failure
if: ${{ failure() && (github.event_name == 'schedule') && (github.repository_owner == 'dealii') }}
if: failure() && github.event_name == 'schedule'
uses: JasonEtco/create-an-issue@v2.9.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2a4bb61

Please sign in to comment.