From 46cd642a95e6a051029f5babc01eef3fdd60050a Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic Date: Fri, 22 Nov 2024 14:54:44 +0000 Subject: [PATCH 1/2] Collect workflow data --- .github/workflows/produce_data.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/produce_data.yml diff --git a/.github/workflows/produce_data.yml b/.github/workflows/produce_data.yml new file mode 100644 index 000000000..f93800fe3 --- /dev/null +++ b/.github/workflows/produce_data.yml @@ -0,0 +1,26 @@ +name: "[internal] Collect workflow data" + +on: + workflow_run: + workflows: # List workflow that we want to collect data for + - "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 }} From 793d50969ba6da3496060c3f1ea1f4b4ac9c77bf Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic Date: Tue, 26 Nov 2024 10:58:36 +0000 Subject: [PATCH 2/2] Update triggers --- .github/workflows/produce_data.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/produce_data.yml b/.github/workflows/produce_data.yml index f93800fe3..e53ccc0f6 100644 --- a/.github/workflows/produce_data.yml +++ b/.github/workflows/produce_data.yml @@ -3,6 +3,8 @@ 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: @@ -21,6 +23,6 @@ jobs: 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 }} + sftp_host: ${{ secrets.SFTP_CICD_WRITER_HOSTNAME }} + sftp_user: ${{ secrets.SFTP_CICD_WRITER_USERNAME }} + ssh-private-key: ${{ secrets.SFTP_CICD_WRITER_KEY }}