Skip to content

Commit

Permalink
CI: More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
drdanz committed Mar 11, 2021
1 parent ba02159 commit 250fa1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
run: |
echo "::set-output name=timestamp::$(/bin/date -u +%Y%m%d-%H%M%S)"
echo "::set-output name=repository::${{ github.repository }}"
if [[ "$GITHUB_EVENT_NAME" = "pull_request_target" ]]; then
echo "::set-output name=environment::code-analysis_unsafe"
echo "::set-output name=repository::${{ github.event.pull_request.head.repo.full_name }}"
echo "::set-output name=ref::refs/pull/$(cat $GITHUB_EVENT_PATH | jq .number)/merge"
else
echo "::set-output name=repository::${{ github.repository }}"
echo "::set-output name=ref::${{ github.ref }}"
echo "::set-output name=environment::code-analysis"
echo "::set-output name=ref::${{ github.ref }}"
fi
if [[ "$GITHUB_EVENT_NAME" = "pull_request" || "$GITHUB_EVENT_NAME" == "pull_request_target" ]]; then
echo "::set-output name=sha::${{ github.event.pull_request.head.sha }}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
run: |
echo "::set-output name=timestamp::$(/bin/date -u +%Y%m%d-%H%M%S)"
echo "::set-output name=repository::${{ github.repository }}"
if [[ "$GITHUB_EVENT_NAME" = "pull_request_target" ]]; then
echo "::set-output name=environment::code-analysis_unsafe"
echo "::set-output name=repository::${{ github.event.pull_request.head.repo.full_name }}"
echo "::set-output name=ref::refs/pull/$(cat $GITHUB_EVENT_PATH | jq .number)/merge"
else
echo "::set-output name=repository::${{ github.repository }}"
echo "::set-output name=ref::${{ github.ref }}"
echo "::set-output name=environment::code-analysis"
echo "::set-output name=ref::${{ github.ref }}"
fi
if [[ "$GITHUB_EVENT_NAME" = "pull_request" || "$GITHUB_EVENT_NAME" == "pull_request_target" ]]; then
echo "::set-output name=sha::${{ github.event.pull_request.head.sha }}"
Expand Down

0 comments on commit 250fa1f

Please sign in to comment.