Skip to content

Commit 1d803b1

Browse files
committed
feat: trigger on release create
1 parent 0abc9e1 commit 1d803b1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/delete-old-image.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Delete Old Docker Image
22

33
on:
44
workflow_dispatch:
5-
5+
push:
6+
branches:
7+
- main
68
jobs:
79

810
cleanup-pg:
@@ -14,7 +16,7 @@ jobs:
1416
with:
1517
token: ${{ secrets.GITHUB_TOKEN }}
1618
owner: ${{ github.repository_owner }}
17-
repository: multi-repo/Postgres
19+
repository: multi-repo/postgres
1820
keep-n-tagged: 1
19-
package: multi-repo/Postgres/pg
21+
package: multi-repo/postgres/pg
2022
dry-run: false

.github/workflows/docker-builds.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: Build Docker Images
22

33
on:
4-
push:
5-
branches:
6-
- main
74
release:
85
types: [created, published, released]
96

107

8+
119
jobs:
1210

1311
ghcr-build-pg:
@@ -62,7 +60,7 @@ jobs:
6260
curl -X POST \
6361
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
6462
-H "Accept: application/vnd.github.v3+json" \
65-
https://api.github.com/repos/${{ github.repository }}/actions/workflows/delete-old-image.yml/dispatches \
63+
https://api.github.com/repos/${{ github.repository }}/actions/workflows/delete-old-image.yml \
6664
-d '{"ref": "main"}'
6765
6866

0 commit comments

Comments
 (0)