Update weekly-velocity-report.yml

This commit is contained in:
Bryan Morgan 2025-08-05 18:11:06 -04:00 committed by GitHub
parent dadf05809c
commit 2e9236fab4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 35 deletions

View File

@ -1,43 +1,24 @@
# .github/workflows/weekly-velocity-report.yml name: Test Third-Party Action Access
name: Weekly Velocity Report on: workflow_dispatch
on:
schedule:
- cron: '0 9 * * 1' # Runs every Monday at 9:00 AM UTC
workflow_dispatch:
jobs: jobs:
generate_report: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: This is an official action that will likely work
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Generate Weekly Report as CSV - name: This is a very popular, non-official action
id: report uses: actions/setup-node@v4
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_REPO: ${{ github.repository }}
run: |
chmod +x ./.github/workflows/scripts/generate-report.sh
REPORT_CSV=$(./.github/workflows/scripts/generate-report.sh)
echo "csv_data<<EOF" >> $GITHUB_OUTPUT
echo "$REPORT_CSV" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Append data to Google Sheet
if: success()
uses: jroehl/gsheet-action@v2.1.1
with: with:
spreadsheetId: ${{ secrets.SPREADSHEET_ID }} node-version: '20'
commands: |
[ - name: This is the Google Sheets action we want to use
{ uses: gautamkrishnar/append-csv-to-google-sheet-action@v2
"command": "appendData", with:
"params": { # We don't need real inputs, we just want to see if it can be found
"sheetName": "Weekly Reports", sheet-name: 'Test'
"data": "${{ steps.report.outputs.csv_data }}" csv-text: 'test'
} spreadsheet-id: 'test'
} google-api-key-base64: 'test'
]