Skip to content

Commit

Permalink
feat(ci): add comment with image ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampouille committed Oct 18, 2024
1 parent 120a596 commit c711a85
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- main
# trigger on PR
pull_request:
types: [opened, synchronize, labeled]
types: [opened, reopened, synchronize, labeled]
branches:
- main

Expand Down Expand Up @@ -59,7 +59,8 @@ jobs:
--label GIT_COMMIT=$(git rev-parse HEAD) .
docker push ghcr.io/camptocamp/pg253:${TAG}
- uses: actions/github-script@v7
- name: Comment PR
uses: actions/github-script@v7
if: ${{ contains( github.event.pull_request.labels.*.name, 'build') }}
with:
github-token: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -72,6 +73,6 @@ jobs:
})
- name: Build only
if: ${{ not contains( github.event.pull_request.labels.*.name, 'build') }}
if: ${{ ! contains( github.event.pull_request.labels.*.name, 'build') }}
run: |
docker build --pull --no-cache .

0 comments on commit c711a85

Please sign in to comment.