Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
35 changes: 35 additions & 0 deletions .github/workflows/update-test426-fixtures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: test426 fixtures update

on:
schedule:
- cron: 0 0 * * 0
workflow_dispatch:

permissions:
contents: read

jobs:
update-test426-fixtures:
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false

- name: Update test426 fixtures from tc39/source-map-tests
run: bash tools/dep_updaters/update-test426-fixtures.sh

- name: Open or update PR for test426 fixtures
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
with:
branch: actions/update-test426-fixtures
author: Node.js GitHub Bot <[email protected]>
title: 'test: update test426 fixtures from tc39/source-map-tests'
commit-message: 'test: update test426 fixtures from tc39/source-map-tests'
labels: test
update-pull-request-title-and-body: true
body: |
This is an automated update of the test426 fixtures from https://github.com/tc39/source-map-tests.
env:
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
15 changes: 15 additions & 0 deletions tools/dep_updaters/update-test426-fixtures.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

set -e

REPO_URL="https://github.com/tc39/source-map-tests.git"
TARGET_DIR="$(dirname "$0")/../../test/fixtures/test426"
TMP_DIR="$(mktemp -d)"

git clone --depth=1 "$REPO_URL" "$TMP_DIR"

rsync -a --delete --exclude='.git' "$TMP_DIR"/ "$TARGET_DIR"/

rm -rf "$TMP_DIR"

echo "test426 fixtures updated from $REPO_URL."
Loading