Skip to content

Commit

Permalink
Debug GHA PRs (#2797)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker authored Dec 13, 2023
1 parent 2ce3e94 commit 9c600ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/pr-body.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
!!! ONLY A TEST !!!

Created by Mondoo Tools via GitHub Actions

Workflow:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pr-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 9c600ca

Please sign in to comment.