Skip to content

Commit 2caf09c

Browse files
committed
parse version name from tag
1 parent 2f0d2ac commit 2caf09c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/build-postgres.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
repository: postgres/postgres
18-
ref: refs/tags/${{ github.event.inputs.version }}
18+
ref: refs/tags/${{ github.event.inputs.tag }}
1919
fetch-tags: true
2020
- run: curl https://raw.githubusercontent.com/eitco/build-postgres/${{ github.ref_name }}/build.sh > build.sh && chmod +x build.sh
21-
- run: ./build.sh "${{ github.event.inputs.version }}" osx
21+
- run: ./build.sh "${{ github.event.inputs.tag }}" osx
2222
- uses: ncipollo/[email protected]
2323
with:
24-
name: "postgres-${{ github.event.inputs.version }}-osx"
25-
body: "postgres ${{ github.event.inputs.version }} osx"
26-
artifacts: "postgres-${{ github.event.inputs.version }}-osx.tar.gz"
27-
tag: ${{ github.event.inputs.version }}-osx
24+
name: "postgres-${{ github.event.inputs.tag }}-osx"
25+
body: "postgres ${{ github.event.inputs.tag }} osx"
26+
artifacts: "postgres-${{ github.event.inputs.tag }}-osx.tar.gz"
27+
tag: ${{ github.event.inputs.tag }}-osx
2828
commit: ${{ github.ref_name }}
2929
build-linux-64:
3030
runs-on: ubuntu-latest
@@ -33,14 +33,14 @@ jobs:
3333
uses: actions/checkout@v4
3434
with:
3535
repository: postgres/postgres
36-
ref: refs/tags/${{ github.event.inputs.version }}
36+
ref: refs/tags/${{ github.event.inputs.tag }}
3737
fetch-tags: true
3838
- run: curl https://raw.githubusercontent.com/eitco/build-postgres/${{ github.ref_name }}/build.sh > build.sh && chmod +x build.sh
39-
- run: ./build.sh "${{ github.event.inputs.version }}" linux-64
39+
- run: ./build.sh "${{ github.event.inputs.tag }}" linux-64
4040
- uses: ncipollo/[email protected]
4141
with:
42-
name: "postgres-${{ github.event.inputs.version }}-linux-64"
43-
body: "postgres ${{ github.event.inputs.version }} linux-64"
42+
name: "postgres-${{ github.event.inputs.tag }}-linux-64"
43+
body: "postgres ${{ github.event.inputs.tag }} linux-64"
4444
artifacts: "postgres-*-linux-64.tar.gz"
45-
tag: ${{ github.event.inputs.version }}-linux-64
45+
tag: ${{ github.event.inputs.tag }}-linux-64
4646
commit: ${{ github.ref_name }}

0 commit comments

Comments
 (0)