ci: fix scheduled builds

This commit is contained in:
Kévin Dunglas
2023-12-23 13:52:39 +01:00
parent 9bf991ca88
commit 34e4ef1e84
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
# Push if it's a scheduled job, a tag, or if we're committing to the main branch
push: ${{ toJson(github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.version) || startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request')) }}
push: ${{ (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.version) || startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request')) && true || false }}
variants: ${{ steps.matrix.outputs.variants }}
platforms: ${{ steps.matrix.outputs.platforms }}
metadata: ${{ steps.matrix.outputs.metadata }}
@@ -64,7 +64,7 @@ jobs:
} >> "${GITHUB_OUTPUT}"
-
uses: actions/checkout@v4
if: ${{ !fromJson(steps.check.outputs.skip) }}
if: ${{ !steps.check.outputs.skip }}
with:
ref: ${{ steps.check.outputs.ref }}
-
+2 -2
View File
@@ -57,8 +57,8 @@ jobs:
uses: docker/bake-action@v4
with:
pull: true
load: ${{toJson(!needs.prepare.outputs.ref && !startsWith(github.ref, 'refs/tags/') && (github.ref != 'refs/heads/main' || github.event_name == 'pull_request'))}}
push: ${{toJson(needs.prepare.outputs.ref || startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request'))}}
load: ${{ (!needs.prepare.outputs.ref && !startsWith(github.ref, 'refs/tags/') && (github.ref != 'refs/heads/main' || github.event_name == 'pull_request')) && true || false }}
push: ${{ (needs.prepare.outputs.ref || startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request')) && true || false }}
targets: static-builder
set: |
*.cache-from=type=gha,scope=${{needs.prepare.outputs.ref || github.ref}}-static-builder