Skip to content

code-reuse-[feature/GH-1-sonar-setup]=>[develop] #3

code-reuse-[feature/GH-1-sonar-setup]=>[develop]

code-reuse-[feature/GH-1-sonar-setup]=>[develop] #3

Workflow file for this run

---
# The name of the workflow
name: code-reuse
# The name of the workflow run
run-name: "${{ github.workflow }}-[${{ github.head_ref || github.ref_name }}]=>[${{ github.base_ref }}]"
# Concurrency configuration
concurrency:
# The concurrency group for this workflow
group: "${{ github.workflow }}-[${{ github.head_ref || github.ref_name }}]=>[${{ github.base_ref }}]"
# Cancel all previous runs in progress
cancel-in-progress: true
# Events that trigger the workflow
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Automatically run the workflow on pull_request events
pull_request:
types: [ opened, edited, labeled, synchronize, ready_for_review, reopened ]
# Environment variables available to all jobs and steps in this workflow
env:
WORKFLOW_VERSION: 1.0.0
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# reuse-compliance-check
reuse-compliance-check:
# The name of the job
name: reuse-compliance-check
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Conditions to run the job
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.draft == false }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# checkout
- name: checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# reuse
- name: reuse
id: reuse
uses: fsfe/reuse-action@v5