From 5a3c1d6c9d3536079587f6688d3efec9165e2a3b Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Thu, 16 Jan 2025 08:05:05 +0100 Subject: [PATCH 1/2] Create pr-description.yaml --- .github/workflows/pr-description.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/pr-description.yaml diff --git a/.github/workflows/pr-description.yaml b/.github/workflows/pr-description.yaml new file mode 100644 index 0000000..d0bfdb4 --- /dev/null +++ b/.github/workflows/pr-description.yaml @@ -0,0 +1,19 @@ +name: Autofill PR description + +on: pull_request + +jobs: + openai-pr-description: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + - name: Autofill PR description if empty using OpenAI + uses: cedricve/azureopenai-pr-description@master + with: + github_token: ${{ secrets.TOKEN }} + openai_api_key: ${{ secrets.OPENAI_API_KEY }} + azure_openai_api_key: ${{ secrets.AZURE_OPENAI_API_KEY }} + azure_openai_endpoint: ${{ secrets.AZURE_OPENAI_ENDPOINT }} + azure_openai_version: ${{ secrets.AZURE_OPENAI_VERSION }} + overwrite_description: true From e6717c87cdbb5914d1d76b5cf0e8737f7e71b616 Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Thu, 16 Jan 2025 08:05:46 +0100 Subject: [PATCH 2/2] update secrets --- .github/workflows/docker-dev.yml | 8 ++++---- .github/workflows/docker-nightly.yml | 8 ++++---- .github/workflows/docker.yml | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docker-dev.yml b/.github/workflows/docker-dev.yml index e90af7e..e2c81d7 100644 --- a/.github/workflows/docker-dev.yml +++ b/.github/workflows/docker-dev.yml @@ -14,8 +14,8 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout uses: actions/checkout@v3 - name: Set up QEMU @@ -40,8 +40,8 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout uses: actions/checkout@v3 - name: Set up QEMU diff --git a/.github/workflows/docker-nightly.yml b/.github/workflows/docker-nightly.yml index fcca3a7..689983c 100644 --- a/.github/workflows/docker-nightly.yml +++ b/.github/workflows/docker-nightly.yml @@ -15,8 +15,8 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout run: git clone https://github.com/kerberos-io/agent && cd agent - name: Set up QEMU @@ -38,8 +38,8 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout run: git clone https://github.com/kerberos-io/agent && cd agent - name: Set up QEMU diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1d2cb1b..d7f9499 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -19,8 +19,8 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout uses: actions/checkout@v3 - uses: benjlevesque/short-sha@v2.1 @@ -77,8 +77,8 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout uses: actions/checkout@v3 - uses: benjlevesque/short-sha@v2.1