Skip to content

Commit b4650e7

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

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

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

33
on:
4+
pull_request:
5+
push:
46
workflow_dispatch:
57
inputs:
68
pg_repo:
@@ -28,6 +30,33 @@ defaults:
2830
shell: 'bash -Eeuo pipefail -x {0}'
2931

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

0 commit comments

Comments
 (0)