Skip to content

Commit 8c3f81c

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

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 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,44 @@ 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: Dump GitHub context
61+
env:
62+
GITHUB_CONTEXT: ${{ toJSON(github) }}
63+
run: echo "$GITHUB_CONTEXT"
64+
65+
- name: Git
66+
run: |
67+
image_tag=$( (git symbolic-ref -q --short HEAD || git describe --tags --exact-match) | tr / -)
68+
echo $image_tag
69+
3170
build-pg:
3271
name: Build generic PostgreSQL image from sources
3372
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)