From 80b0a0f6ef8c1c2aa0d8320ea33f3a13798a12e4 Mon Sep 17 00:00:00 2001 From: Guilherme Ferreira Date: Mon, 23 Oct 2023 16:26:12 +0100 Subject: [PATCH] chore: upload an artifact instead of creating an issue --- .github/workflows/metrics.yml | 44 +++++++++++++---------------------- 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml index fff118dfc..cb810c740 100644 --- a/.github/workflows/metrics.yml +++ b/.github/workflows/metrics.yml @@ -41,14 +41,11 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SEARCH_QUERY: 'repo:farfetch/kafkaflow created:${{ env.last_month }} -reason:"not planned"' - - name: Create issue for opened items - uses: peter-evans/create-issue-from-file@v4 + - name: Upload for opened items + uses: actions/upload-artifact@v3 with: - title: "[Metrics] Opened in ${{ env.report_month }}" - token: ${{ secrets.GITHUB_TOKEN }} - content-filepath: ./issue_metrics.md - assignees: ${{ vars.TEAM_MEMBERS }} - labels: metrics + name: items-opened + path: ./issue_metrics.md - name: Run issue-metrics tool for items closed last month id: closed-metrics @@ -57,14 +54,11 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SEARCH_QUERY: 'repo:farfetch/kafkaflow closed:${{ env.last_month }} -reason:"not planned"' - - name: Create issue for closed items - uses: peter-evans/create-issue-from-file@v4 + - name: Upload for closed items + uses: actions/upload-artifact@v3 with: - title: "[Metrics] Closed in ${{ env.report_month }}" - token: ${{ secrets.GITHUB_TOKEN }} - content-filepath: ./issue_metrics.md - assignees: ${{ vars.TEAM_MEMBERS }} - labels: metrics + name: items-closed + path: ./issue_metrics.md - name: Run issue-metrics tool for discussions opened last month id: opened-discussions-metrics @@ -73,14 +67,11 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SEARCH_QUERY: 'repo:farfetch/kafkaflow type:discussions created:${{ env.last_month }} -reason:"not planned"' - - name: Create issue for opened discussions - uses: peter-evans/create-issue-from-file@v4 + - name: Upload for opened discussions + uses: actions/upload-artifact@v3 with: - title: "[Metrics] Opened Discussions in ${{ env.report_month }}" - token: ${{ secrets.GITHUB_TOKEN }} - content-filepath: ./issue_metrics.md - assignees: ${{ vars.TEAM_MEMBERS }} - labels: metrics + name: discussions-opened + path: ./issue_metrics.md - name: Run issue-metrics tool for discussions closed last month id: closed-discussions-metrics @@ -89,11 +80,8 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SEARCH_QUERY: 'repo:farfetch/kafkaflow type:discussions closed:${{ env.last_month }} -reason:"not planned"' - - name: Create issue for closed discussions - uses: peter-evans/create-issue-from-file@v4 + - name: Upload for closed discussions + uses: actions/upload-artifact@v3 with: - title: "[Metrics] Closed Discussions in ${{ env.report_month }}" - token: ${{ secrets.GITHUB_TOKEN }} - content-filepath: ./issue_metrics.md - assignees: ${{ vars.TEAM_MEMBERS }} - labels: metrics + name: discussions-closed + path: ./issue_metrics.md \ No newline at end of file