-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
38 lines (38 loc) · 1.19 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Generate Weights & Biases Report
description: Generate a Weights & Biases Report automatically via a template. See readme for details.
branding:
icon: book-open
color: yellow
inputs:
wandb_api_key:
description: Your wandb API key available at `/authorize`. We recommend setting this in github secrets!
required: true
report_template_filename:
description: The .py file you want to use for templating.
required: true
runs:
using: composite
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install wandb
run: pip install wandb>=0.13.6
shell: bash
- name: Generate a new report
id: generate-report
run: |
report_url=$(python ${{ inputs.report_template_filename }})
echo "REPORT_URL=$report_url" >> $GITHUB_OUTPUT
shell: bash
env:
WANDB_API_KEY: ${{ inputs.wandb_api_key }}
- name: Echo Output
run: |
echo "Generated report at ${{ steps.generate-report.outputs.REPORT_URL }}"
echo "Generated report at ${{ steps.generate-report.outputs.REPORT_URL }}" >> $GITHUB_STEP_SUMMARY
shell: bash