ci: update workflows [skip ci]
This commit is contained in:
2
.github/scripts/presets_examples.mjs
vendored
2
.github/scripts/presets_examples.mjs
vendored
@@ -15,7 +15,7 @@ const __metrics = paths.join(paths.dirname(url.fileURLToPath(import.meta.url)),
|
||||
const __presets = paths.join(__metrics, ".presets")
|
||||
|
||||
if ((!await fs.access(__presets).then(_ => true).catch(_ => false)) || (!(await fs.lstat(__presets)).isDirectory()))
|
||||
await sgit().clone(`https://github-actions[bot]:${process.env.GITHUB_TOKEN}@github.com/lowlighter/metrics`, __presets, { "--branch": "presets", "--single-branch": true })
|
||||
await sgit().clone(`https://github-actions[bot]:${process.env.GITHUB_TOKEN}@github.com/lowlighter/metrics`, __presets, { "--branch": process.env.HEAD_REF || "presets", "--single-branch": true })
|
||||
const git = sgit(__presets)
|
||||
await git.pull()
|
||||
const staged = new Set()
|
||||
|
||||
6
.github/workflows/test.presets.yml
vendored
6
.github/workflows/test.presets.yml
vendored
@@ -4,7 +4,9 @@ on:
|
||||
pull_request:
|
||||
branches: [ presets ]
|
||||
workflow_call:
|
||||
|
||||
inputs:
|
||||
HEAD_REF:
|
||||
type: string
|
||||
jobs:
|
||||
|
||||
test:
|
||||
@@ -24,3 +26,5 @@ jobs:
|
||||
run: npm ci
|
||||
- name: Run tests
|
||||
run: npm run test-presets
|
||||
env:
|
||||
HEAD_REF: ${{ inputs.HEAD_REF }}
|
||||
Reference in New Issue
Block a user