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 }}