diff --git a/.github/workflows/produce_data.yml b/.github/workflows/produce_data.yml new file mode 100644 index 000000000..e53ccc0f6 --- /dev/null +++ b/.github/workflows/produce_data.yml @@ -0,0 +1,28 @@ +name: "[internal] Collect workflow data" + +on: + workflow_run: + workflows: # List workflow that we want to collect data for + - "On PR" + - "On push" + - "Build on macos-latest" + - "Build and Test" + types: + - completed + +jobs: + produce-cicd-data: + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ github.token }} + steps: + - name: Collect CI/CD data + uses: tenstorrent/tt-github-actions/.github/actions/collect_data@main + if: ${{ github.event_name == 'workflow_run' }} + with: + repository: ${{ github.repository }} + run_id: ${{ github.event.workflow_run.id }} + run_attempt: ${{ github.event.workflow_run.run_attempt }} + sftp_host: ${{ secrets.SFTP_CICD_WRITER_HOSTNAME }} + sftp_user: ${{ secrets.SFTP_CICD_WRITER_USERNAME }} + ssh-private-key: ${{ secrets.SFTP_CICD_WRITER_KEY }}