Skip to content

Commit

Permalink
CI: Adjust publishing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Aug 27, 2024
1 parent 0aedc48 commit 2364947
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI - Patch latest Sequoia metallib's

on:
schedule:
- cron: "0 */2 * * *"
- cron: "0 */3 * * *"
push:
branches:
- main
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Patch metal libraries
if: steps.fetch.outputs.BACKUP_FOLDER != ''
run: python3 metallib.py --patch ${{ steps.fetch.outputs.BACKUP_FOLDER }} --multiprocessing
run: python3 metallib.py --patch ${{ steps.fetch.outputs.BACKUP_FOLDER }}

- name: Build sys_patch_dict.py
if: steps.fetch.outputs.BACKUP_FOLDER != ''
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
CLEAN: true

- name: Create GitHub release
if: steps.fetch.outputs.BACKUP_FOLDER != ''
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.fetch.outputs.BACKUP_FOLDER != '' }}
uses: softprops/action-gh-release@v1
with:
files: |
Expand Down

0 comments on commit 2364947

Please sign in to comment.