From db340cc81d330de66774b442fdbc4452200bc587 Mon Sep 17 00:00:00 2001 From: Timothy Johnson Date: Thu, 10 Apr 2025 10:32:04 -0400 Subject: [PATCH 1/3] Test workflow to create user activity report Signed-off-by: Timothy Johnson --- .github/workflows/activity.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/activity.yaml diff --git a/.github/workflows/activity.yaml b/.github/workflows/activity.yaml new file mode 100644 index 000000000..9328d8e9c --- /dev/null +++ b/.github/workflows/activity.yaml @@ -0,0 +1,29 @@ +name: Create User Activity Report + +on: + pull_request: + workflow_dispatch: + inputs: + days: + description: 'Number of days to collect information for' + required: false + type: number + default: 365 + +jobs: + generate-report: + runs-on: ubuntu-latest + steps: + - name: Analyze User Activity + id: analyze_user_activity + uses: peter-murray/inactive-users-action@v1 + with: + token: ${{ secrets.ZOWE_ROBOT_TOKEN }} + organization: zowe + activity_days: ${{ inputs.days || 365 }} + + - name: Save User Activity Report + uses: actions/upload-artifact@v4 + with: + name: reports + path: ${{ steps.analyze_user_activity.outputs.report_csv }} From 1c652d543b72012b0ae174f99f14b271ae7ab426 Mon Sep 17 00:00:00 2001 From: Timothy Johnson Date: Thu, 10 Apr 2025 10:55:01 -0400 Subject: [PATCH 2/3] Fork action to exclude private repos Signed-off-by: Timothy Johnson --- .github/workflows/activity.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/activity.yaml b/.github/workflows/activity.yaml index 9328d8e9c..b24cbd82d 100644 --- a/.github/workflows/activity.yaml +++ b/.github/workflows/activity.yaml @@ -16,7 +16,7 @@ jobs: steps: - name: Analyze User Activity id: analyze_user_activity - uses: peter-murray/inactive-users-action@v1 + uses: t1m0thyj/inactive-users-action@main with: token: ${{ secrets.ZOWE_ROBOT_TOKEN }} organization: zowe From ebfbdd2fc648f0a7cae820477d9083163da1e672 Mon Sep 17 00:00:00 2001 From: Timothy Johnson Date: Fri, 11 Apr 2025 10:08:18 -0400 Subject: [PATCH 3/3] Move forked action to zowe-actions org Signed-off-by: Timothy Johnson --- .github/workflows/activity.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/activity.yaml b/.github/workflows/activity.yaml index b24cbd82d..01532a561 100644 --- a/.github/workflows/activity.yaml +++ b/.github/workflows/activity.yaml @@ -16,7 +16,7 @@ jobs: steps: - name: Analyze User Activity id: analyze_user_activity - uses: t1m0thyj/inactive-users-action@main + uses: zowe-actions/inactive-users-action@main with: token: ${{ secrets.ZOWE_ROBOT_TOKEN }} organization: zowe