Skip to content

Commit

Permalink
chore: upload an artifact instead of creating an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Ferreira committed Oct 25, 2023
1 parent 6bef92a commit 80b0a0f
Showing 1 changed file with 16 additions and 28 deletions.
44 changes: 16 additions & 28 deletions .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 80b0a0f

Please sign in to comment.