Skip to content

Commit

Permalink
Update metrics.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciused26 authored Feb 4, 2025
1 parent a723fa9 commit 04eb411
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,33 @@ on:

jobs:
release:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'NOT RELEASE') == false
runs-on: 'ubuntu-latest'
environment: actions

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dotenv
run: pip install python-dotenv packaging pandas

- name: Cria arquivo .env
run: |
touch ./sonar_scripts/.env
echo GITHUB_TOKEN=${{ secrets.API_TOKEN_GITHUB }} >> ./sonar_scripts/.env
echo RELEASE_MAJOR=${{ contains(github.event.pull_request.labels.*.name, 'MAJOR RELEASE') }} >> ./sonar_scripts/.env
echo RELEASE_MINOR=${{ contains(github.event.pull_request.labels.*.name, 'MINOR RELEASE') }} >> ./sonar_scripts/.env
echo RELEASE_FIX=${{ contains(github.event.pull_request.labels.*.name, 'FIX RELEASE') }} >> ./sonar_scripts/.env
echo DEVELOP=${{ contains(github.event.pull_request.labels.*.name, 'DEVELOP') }} >> ./sonar_scripts/.env
echo REPO=${{ github.event.repository.name }} >> ./sonar_scripts/.env
- name: Criar diretório
run: mkdir analytics-raw-data

- name: Coletar métricas no SonarCloud
run: python parser.py fga-eps-mds_2024-2-GEROcuidado-Front ${{ github.event.repository.name }} ${{ github.ref_name }}
run: python parser.py

- name: Envia métricas para repo de Doc
run: |
Expand Down

0 comments on commit 04eb411

Please sign in to comment.