Skip to content

Commit 55df3dd

Browse files
committed
testing forks
Signed-off-by: Niccolò Fei <[email protected]>
1 parent 67a7a75 commit 55df3dd

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Container Images from PostgreSQL sources
22

33
on:
4+
pull_request:
45
workflow_dispatch:
56
inputs:
67
pg_repo:
@@ -28,6 +29,39 @@ defaults:
2829
shell: 'bash -Eeuo pipefail -x {0}'
2930

3031
jobs:
32+
test-forks:
33+
name: test-forks
34+
runs-on: ubuntu-24.04
35+
steps:
36+
- name: Checkout Code
37+
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
40+
41+
- name: Git
42+
run: |
43+
image_tag=$( (git symbolic-ref -q --short HEAD || git describe --tags --exact-match) | tr / -)
44+
echo $image_tag
45+
46+
test-slash:
47+
name: test-slash
48+
runs-on: ubuntu-24.04
49+
steps:
50+
- name: Resolve Git reference
51+
uses: xt0rted/pull-request-comment-branch@v3
52+
id: refs
53+
54+
- name: Checkout Code
55+
uses: actions/checkout@v4
56+
with:
57+
ref: ${{ steps.refs.outputs.head_sha }}
58+
fetch-depth: 0
59+
60+
- name: Git
61+
run: |
62+
image_tag=$( (git symbolic-ref -q --short HEAD || git describe --tags --exact-match) | tr / -)
63+
echo $image_tag
64+
3165
build-pg:
3266
name: Build generic PostgreSQL image from sources
3367
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)