Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
53 lines (53 loc) · 2.33 KB
/
Copy pathaction.yml
File metadata and controls
53 lines (53 loc) · 2.33 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Uptide
description: Dependency upgrades checked and migrated in this repository's own Actions, opened as draft pull requests verified by its compiler and tests.
author: uptide-dev
branding:
icon: arrow-up-circle
color: blue
inputs:
config:
description: The settings file, relative to the repository root.
default: uptide.yml
mode:
description: 'list: what is behind. check: what each upgrade breaks. fix: verified migrations as draft pull requests.'
default: check
package:
description: One dependency to check or fix. Empty for every dependency the settings allow.
default: ''
anthropic-api-key:
description: Required. Pass the repository secret (secrets.ANTHROPIC_API_KEY); without it the run stops before doing anything and the job fails. Never given to installs or tests.
default: ''
app-url:
description: The Uptide app, which issues the push token and receives the run report.
default: https://uptide-app.vercel.app
outputs:
report:
description: Path of the uptide.run/v1 report of this run (JSON).
value: ${{ steps.run.outputs.report }}
runs:
using: composite
steps:
# The engine of this commit, from its frozen lockfile with install scripts off, built in
# place. pnpm is installed into the runner's temp directory and never put on PATH, so the
# repository's own package manager and Node stay as the workflow set them up.
- name: Set up the Uptide engine
shell: bash
working-directory: ${{ github.action_path }}
env:
UPTIDE_TOOLS: ${{ runner.temp }}/uptide-tools
# The commit the workflow pinned: recorded in every run, as the archive has no .git.
UPTIDE_BUILD_COMMIT: ${{ github.action_ref }}
# Only whether a key was passed, never the key: without one the engine is not built.
UPTIDE_LLM_KEY: ${{ inputs.anthropic-api-key != '' && 'present' || 'missing' }}
run: bash scripts/action-setup.sh
- id: run
name: Run Uptide
shell: bash
working-directory: ${{ github.action_path }}
env:
UPTIDE_CONFIG: ${{ inputs.config }}
UPTIDE_MODE: ${{ inputs.mode }}
UPTIDE_PACKAGE: ${{ inputs.package }}
UPTIDE_APP_URL: ${{ inputs.app-url }}
UPTIDE_ANTHROPIC_API_KEY: ${{ inputs.anthropic-api-key }}
run: node --conditions=source --import tsx scripts/action.ts