Skip to content

Commit fb632f5

Browse files
committed
Add PR support
1 parent 25b4e05 commit fb632f5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build-root.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
schedule:
88
- cron: '0 */12 * * *' # Every 12 hours
99
workflow_dispatch:
10+
pull_request:
11+
branches:
12+
- main
1013

1114
jobs:
1215
pyenv-version:
@@ -50,7 +53,7 @@ jobs:
5053
with:
5154
context: .
5255
file: ./Dockerfile.base
53-
push: true
56+
push: ${{ github.ref == 'refs/heads/main' }}
5457
cache-to: type=inline
5558
cache-from: type=registry,ref=ghcr.io/python-discord/python-builds:builder-base
5659
build-args: |

.github/workflows/build-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
context: .
4646
file: ./Dockerfile
47-
push: true
47+
push: ${{ github.ref == 'refs/heads/main' }}
4848
cache-to: type=inline
4949
cache-from: type=registry,ref=ghcr.io/python-discord/python-builds:${{ inputs.tag }}
5050
tags: |

0 commit comments

Comments
 (0)