From 8760f7d9b7ef41040cbc5b94fecda3fa1512ae5f Mon Sep 17 00:00:00 2001 From: Oded Ben-Ozer Date: Wed, 12 Jul 2023 13:49:20 +0200 Subject: [PATCH] Allow publishing from PR --- .github/workflows/publish-on-comment.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish-on-comment.yml diff --git a/.github/workflows/publish-on-comment.yml b/.github/workflows/publish-on-comment.yml new file mode 100644 index 0000000000..b1660152af --- /dev/null +++ b/.github/workflows/publish-on-comment.yml @@ -0,0 +1,22 @@ +name: CI + +on: + issue_comment: + types: [created] + +jobs: + + artifacts: + name: Artifacts + if: github.event.issue.pull_request && contains(github.event.comment.body, '/publish') && github.event.comment.user.login == 'Oded-B' + uses: ./.github/workflows/artifacts.yaml + with: + publish: ${{ github.event_name == 'push' }} + secrets: + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} + permissions: + contents: read + packages: write + id-token: write + security-events: write