feat: US 4 Ranque de escolas #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: UsuarioService-Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
pull_request: | |
types: [closed] | |
jobs: | |
generate-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get file name | |
id: name | |
run: echo "::set-output name=file_name::fga-eps-mds_2023.2-Dnit-UsuarioService-$(TZ='America/Sao_Paulo' date +'%m-%d-%Y-%H-%M-%S')-${{github.ref_name}}" | |
- name: Copy repository and download metrics | |
uses: actions/checkout@v2 | |
- run: wget $METRICS_URL -O ${{ steps.name.outputs.file_name }}.json | |
env: | |
METRICS_URL: ${{ secrets.METRICS_URL }} | |
- name: Uploads file | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ steps.name.outputs.file_name }}.json | |
path: ${{ steps.name.outputs.file_name }}.json | |
- name: Send metrics to doc repo | |
uses: dmnemec/[email protected] | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.GIT_TOKEN }} | |
with: | |
source_file: ${{ steps.name.outputs.file_name }}.json | |
destination_repo: 'fga-eps-mds/2023.2-Dnit-DOC' | |
destination_folder: 'analytics-raw-data' | |
user_email: ${{ secrets.GIT_EMAIL}} | |
user_name: ${{ secrets.GIT_USER }} | |
commit_message: Métricas automáticas da release ${{github.ref_name}} - ${{ github.event.repository.name }} |