Skip to content

Commit

Permalink
Only run develop branch in na scheduled job
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Aug 18, 2023
1 parent da32b0a commit 52dcd51
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/linux-upstream-zlib-ng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ jobs:
with:
path: repo

- name: Cancel if Scheduled Job and not running the 'develop' branch
if: github.event_name == 'schedule' && matrix.zlib-version != 'develop'
run: |
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Make Paths
run: |
mkdir -p ${{ env.zlib-source }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/macos-upstream-zlib-ng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ jobs:
with:
path: repo

- name: Cancel if Scheduled Job and not running the 'develop' branch
if: github.event_name == 'schedule' && matrix.zlib-version != 'develop'
run: |
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Make Paths
run: |
mkdir -p ${{ env.zlib-source }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/windows-upstream-zlib-ng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Cancel if Scheduled Job and not running the 'develop' branch
if: github.event_name == 'schedule' && matrix.zlib-version != 'develop'
run: |
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Cache zlib ${{matrix.zlib-version}} ${{ matrix.zlib-native }}
# id: cache-zlib
# uses: actions/cache@v3
Expand Down

0 comments on commit 52dcd51

Please sign in to comment.