Skip to content

Commit

Permalink
Fix caching by running the workflow on master
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Jun 13, 2024
1 parent dc11b79 commit 578fd20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Windows CI
on:
push:
branches:
- 'master'
pull_request:
env:
OPAMROOT: D:\opamroot
Expand Down Expand Up @@ -47,10 +50,12 @@ jobs:

- name: Get changed files
id: changed-files
if: github.event_name != 'push'
uses: tj-actions/changed-files@v44

- name: List all changed packages
id: changed-packages
if: github.event_name != 'push'
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
Expand All @@ -69,6 +74,7 @@ jobs:
- name: Install packages
env:
ALL_CHANGED_PACKAGES: ${{ steps.changed-packages.outputs.data }}
if: github.event_name != 'push'
run: |
$pkgs = $env:ALL_CHANGED_PACKAGES | ConvertFrom-Json
$failed = $false
Expand Down

0 comments on commit 578fd20

Please sign in to comment.