From 679972a60491cdc82a1d7d6bd024bd6315ac4796 Mon Sep 17 00:00:00 2001 From: Tobias Klemp Date: Thu, 1 Jan 2026 18:39:55 +0100 Subject: [PATCH] test on comment --- .gitea/workflows/commentDeploy.yml | 43 +++++++++++++++++------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/commentDeploy.yml b/.gitea/workflows/commentDeploy.yml index 3f0784e..ed679d2 100644 --- a/.gitea/workflows/commentDeploy.yml +++ b/.gitea/workflows/commentDeploy.yml @@ -5,26 +5,31 @@ on: jobs: deploy: - if: | - github.event.issue.pull_request && - startsWith(github.event.comment.body, '/deploy') && - (github.event.comment.author_association == 'OWNER' || - github.event.comment.author_association == 'MEMBER') + # if: | + # github.event.issue.pull_request && + # startsWith(github.event.comment.body, '/deploy') && + # (github.event.comment.author_association == 'OWNER' || + # github.event.comment.author_association == 'MEMBER') runs-on: ubuntu-latest steps: - - name: Get tag safe branch name - id: branch_name - uses: ./.github/actions/getTagSafeRef + - name: say hello + if: contains(github.event.comment.body, '/deploy') # check the comment if it contains the keywords + run: | + echo say hello - - name: Build and push image - id: docker_build - uses: ./.github/actions/buildDockerImage - with: - tag: ${{ steps.branch_name.outputs.branch_name }} + # - name: Get tag safe branch name + # id: branch_name + # uses: ./.github/actions/getTagSafeRef - - name: Deploy application - uses: ./.github/actions/deploy - with: - project_name: ${{ steps.branch_name.outputs.branch_name }} - url: '${{ steps.branch_name.outputs.branch_name }}.phoenix.klemp.local' - image_url: ${{ steps.docker_build.outputs.image_url }} + # - name: Build and push image + # id: docker_build + # uses: ./.github/actions/buildDockerImage + # with: + # tag: ${{ steps.branch_name.outputs.branch_name }} + + # - name: Deploy application + # uses: ./.github/actions/deploy + # with: + # project_name: ${{ steps.branch_name.outputs.branch_name }} + # url: '${{ steps.branch_name.outputs.branch_name }}.phoenix.klemp.local' + # image_url: ${{ steps.docker_build.outputs.image_url }}