Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Sonarqube workflow conditional #335

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Debug

on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
7 changes: 1 addition & 6 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: SonarQube analysis

on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- master
pull_request:
types:
- opened
Expand All @@ -15,7 +10,7 @@ on:
jobs:
sonarqube:
runs-on: ubuntu-latest
if: "${{ github.actor == github.repository_owner && github.repository == 'simao-silva/noip-renewer' }}"
if: "${{ github.event.pull_request.head.repo.full_name == 'simao-silva/noip-renewer' }}"
steps:
- name: Checkout
uses: actions/[email protected]
Expand Down