Skip to content
Draft
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/activity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Create User Activity Report

on:
pull_request:
Copy link
Member Author

@t1m0thyj t1m0thyj Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this trigger for testing, we can remove it if we decide to merge the PR.

Or perhaps replace it with a schedule: trigger to run the job on a nightly or weekly basis?

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: t1m0thyj/inactive-users-action@main
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 }}
Loading