Skip to content

Commit

Permalink
ED-4000 feat: Github actions instead of Jenkins-test-sonar-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
princegupta1131 committed Jun 14, 2024
1 parent 9b27807 commit 18759d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Build
on:
push:
branches:
- "deploy" # Trigger on push to any branch
- "*" # Trigger on push to any branch
pull_request:
branches:
- "deploy" # Trigger on pull request to any branch
- "*" # Trigger on pull request to any branch
workflow_dispatch: # Manual trigger
pull_request_target: # This is to access secrets from forked PRs

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-upload-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Build and Upload Artifact
on:
push:
branches:
- "*" # Trigger on push to the "deploy" branch
- "deploy" # Trigger on push to the "deploy" branch
pull_request:
branches:
- "*" # Trigger on pull request to the "deploy" branch
- "deploy" # Trigger on pull request to the "deploy" branch

jobs:
build_and_deploy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_branch }} # Checkout the branch where the original workflow was triggered

- name: Print SONAR_TOKEN
run: echo "SONAR_TOKEN=${{ secrets.SONAR_TOKEN }}PWR****123"
Expand Down

0 comments on commit 18759d2

Please sign in to comment.