From 9c600ca5fdce964118d8ead38312561ef9df0c9b Mon Sep 17 00:00:00 2001 From: Christian Zunker <827818+czunker@users.noreply.github.com> Date: Wed, 13 Dec 2023 16:51:22 +0100 Subject: [PATCH] Debug GHA PRs (#2797) Signed-off-by: Christian Zunker --- .github/pr-body.md | 2 ++ .github/workflows/pr-test-lint.yml | 8 +++++++- .github/workflows/update-deps.yaml | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/pr-body.md b/.github/pr-body.md index 76b64f5c46..e340ab88eb 100644 --- a/.github/pr-body.md +++ b/.github/pr-body.md @@ -1,3 +1,5 @@ +!!! ONLY A TEST !!! + Created by Mondoo Tools via GitHub Actions Workflow: diff --git a/.github/workflows/pr-test-lint.yml b/.github/workflows/pr-test-lint.yml index 1dc8da6f9a..4b958c5293 100644 --- a/.github/workflows/pr-test-lint.yml +++ b/.github/workflows/pr-test-lint.yml @@ -58,13 +58,19 @@ jobs: go-test: runs-on: self-hosted timeout-minutes: 120 - steps: + steps: - name: Checkout code uses: actions/checkout@v4 - name: Import environment variables from file run: cat ".github/env" >> $GITHUB_ENV + - name: Debug event + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: | + echo "$GITHUB_CONTEXT" | jq + - name: Install Go uses: actions/setup-go@v5 with: diff --git a/.github/workflows/update-deps.yaml b/.github/workflows/update-deps.yaml index 099e4b58af..8ff7100fc9 100644 --- a/.github/workflows/update-deps.yaml +++ b/.github/workflows/update-deps.yaml @@ -52,7 +52,8 @@ jobs: shell: bash - name: Create pull request + if: ${{ steps.update-deps.outputs.COUNT_GOMOD != '0' }} run: | - gh pr create --base main --title "${{ steps.branch.outputs.COMMIT_TITLE }}" --body-file .github/pr-body.md + gh pr create --base main --label dependencies --label go --title "${{ steps.branch.outputs.COMMIT_TITLE }}" --body-file .github/pr-body.md env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}