Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LT-Linas35 authored Sep 6, 2024
1 parent ba538da commit 596d65b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Sonar Cloud Scanner Release and Trigger build Docker image workflow

on:
release:
types: [published]

jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- name: Trigger build Docker image workflow
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.workflow_token }}" \
-H "Accept: application/vnd.github.v3+json" \
-d '{"ref":"main", "inputs": {"release_version": "${{ github.event.release.tag_name }}"}}' \
https://api.github.com/repos/LT-Linas35/final_project/actions/workflows/main.yml/dispatches

0 comments on commit 596d65b

Please sign in to comment.