From 86de54050f2d19aaa0c3cf5590a9890abd2a2bc2 Mon Sep 17 00:00:00 2001 From: Muhammad Saad Siddique <26270646+MuhammadSaadSiddique@users.noreply.github.com> Date: Thu, 5 Oct 2023 22:19:16 +0500 Subject: [PATCH 1/6] Create respond_to_new_comment.yml --- .github/workflows/respond_to_new_comment.yml | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/respond_to_new_comment.yml diff --git a/.github/workflows/respond_to_new_comment.yml b/.github/workflows/respond_to_new_comment.yml new file mode 100644 index 0000000..4bb4ab1 --- /dev/null +++ b/.github/workflows/respond_to_new_comment.yml @@ -0,0 +1,21 @@ +name: Respond to New Comments + +on: + issue_comment: + types: + - created + +jobs: + respond: + runs-on: ubuntu-latest + + steps: + - name: Check Comment + id: check-comment + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const comment = context.payload.comment.body.toLowerCase(); + // Add your logic here to respond to the new comment + console.log('New comment:', comment); From 4df4c90b1f05b06fb110e114991b8e796a3f4868 Mon Sep 17 00:00:00 2001 From: Muhammad Saad Siddique <26270646+MuhammadSaadSiddique@users.noreply.github.com> Date: Thu, 5 Oct 2023 22:27:05 +0500 Subject: [PATCH 2/6] Update respond_to_new_comment.yml --- .github/workflows/respond_to_new_comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/respond_to_new_comment.yml b/.github/workflows/respond_to_new_comment.yml index 4bb4ab1..d6eba1e 100644 --- a/.github/workflows/respond_to_new_comment.yml +++ b/.github/workflows/respond_to_new_comment.yml @@ -14,7 +14,7 @@ jobs: id: check-comment uses: actions/github-script@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.CUSTOM_TOKEN }} script: | const comment = context.payload.comment.body.toLowerCase(); // Add your logic here to respond to the new comment From 754af5a81f1bd181e34dc915441842ed7c3101f5 Mon Sep 17 00:00:00 2001 From: Muhammad Saad Siddique <26270646+MuhammadSaadSiddique@users.noreply.github.com> Date: Thu, 5 Oct 2023 23:54:21 +0500 Subject: [PATCH 3/6] Update buildx.yml --- .github/workflows/buildx.yml | 78 ++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/buildx.yml b/.github/workflows/buildx.yml index 5754789..40ee90c 100644 --- a/.github/workflows/buildx.yml +++ b/.github/workflows/buildx.yml @@ -1,42 +1,42 @@ -# name: ci +name: ci -# on: -# push: -# branches: -# - "main" +on: + push: + branches: + - "main" -# env: -# TEST_TAG: user/app:test -# LATEST_TAG: user/app:latest +env: + TEST_TAG: user/app:test + LATEST_TAG: user/app:latest -# jobs: -# docker: -# runs-on: ubuntu-latest -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# - name: Set up QEMU -# uses: docker/setup-qemu-action@v3 -# - name: Set up Docker Buildx -# uses: docker/setup-buildx-action@v3 -# - name: Login to Docker Hub -# uses: docker/login-action@v3 -# with: -# username: h4ckermike -# password: ${{ secrets.DOCKER }} -# - name: Build and export to Docker -# uses: docker/build-push-action@v5 -# with: -# context: . -# load: true -# tags: ${{ env.TEST_TAG }} -# - name: Test -# run: | -# docker run --rm ${{ env.TEST_TAG }} -# - name: Build and push -# uses: docker/build-push-action@v5 -# with: -# context: . -# platforms: linux/amd64,linux/arm64 -# push: true -# tags: ${{ env.LATEST_TAG }} +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} + - name: Build and export to Docker + uses: docker/build-push-action@v5 + with: + context: . + load: true + tags: ${{ env.TEST_TAG }} + - name: Test + run: | + docker run --rm ${{ env.TEST_TAG }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ env.LATEST_TAG }} From e73af99f73144c5fb9bef9593961191f8057bdfc Mon Sep 17 00:00:00 2001 From: Muhammad Saad Siddique <26270646+MuhammadSaadSiddique@users.noreply.github.com> Date: Fri, 6 Oct 2023 00:01:18 +0500 Subject: [PATCH 4/6] Update buildx.yml --- .github/workflows/buildx.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildx.yml b/.github/workflows/buildx.yml index 40ee90c..2bbc54e 100644 --- a/.github/workflows/buildx.yml +++ b/.github/workflows/buildx.yml @@ -29,10 +29,10 @@ jobs: with: context: . load: true - tags: ${{ env.TEST_TAG }} + tags: ${{ secrets.TEST_TAG }} - name: Test run: | - docker run --rm ${{ env.TEST_TAG }} + docker run --rm ${{ secrets.TEST_TAG }} - name: Build and push uses: docker/build-push-action@v5 with: From 44fa8226533cc6647218776e5ed3296945441788 Mon Sep 17 00:00:00 2001 From: Muhammad Saad Siddique <26270646+MuhammadSaadSiddique@users.noreply.github.com> Date: Fri, 6 Oct 2023 00:06:39 +0500 Subject: [PATCH 5/6] Update buildx.yml --- .github/workflows/buildx.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/buildx.yml b/.github/workflows/buildx.yml index 2bbc54e..54ec0be 100644 --- a/.github/workflows/buildx.yml +++ b/.github/workflows/buildx.yml @@ -32,7 +32,7 @@ jobs: tags: ${{ secrets.TEST_TAG }} - name: Test run: | - docker run --rm ${{ secrets.TEST_TAG }} + docker run --rm ${{ env.TEST_TAG }} - name: Build and push uses: docker/build-push-action@v5 with: From 9d5ca867b2316dc60f9a0d0ccf35a4bef6e66c24 Mon Sep 17 00:00:00 2001 From: Muhammad Saad Siddique <26270646+MuhammadSaadSiddique@users.noreply.github.com> Date: Fri, 6 Oct 2023 00:08:14 +0500 Subject: [PATCH 6/6] Update python-package.yml --- .github/workflows/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 42cf029..b357ab2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -34,4 +34,4 @@ jobs: uses: isbang/compose-action@v1.5.1 env: GITHUB_PAT: ${{ secrets.PAT }} - GITHUB_REPO: "jmikedupont2/ai-ticket" + GITHUB_REPO: "MuhammadSaadSiddique/ai-ticket"