Skip to content
Merged
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
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,16 @@ jobs:
name: ci_test_selection
path: ci_test_selection_artifacts/
if-no-files-found: ignore

actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- name: Install actionlint
run: |
curl -fsSL https://raw.githubusercontent.com/rhysd/actionlint/914e7df21a07ef503a81201c76d2b11c789d3fca/scripts/download-actionlint.bash | bash -s -- 1.7.12
sudo mv actionlint /usr/local/bin/actionlint
- name: Run actionlint
run: actionlint
43 changes: 16 additions & 27 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: true
fetch-depth: 0
- uses: pnpm/action-setup@v6
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
with:
version: 11
- uses: actions/setup-node@v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22
cache: pnpm
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
set -euo pipefail
base="${{ steps.vite-base.outputs.base }}"
grep -F "${base}assets/" dist/index.html
! grep -E 'src="/assets/|href="/assets/' dist/index.html
if grep -qE 'src="/assets/|href="/assets/' dist/index.html; then exit 1; fi
- name: Deploy to gh-pages (replace root, preserve pr-*)
run: |
git config user.name "github-actions[bot]"
Expand Down Expand Up @@ -98,13 +98,13 @@ jobs:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- uses: pnpm/action-setup@v6
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
with:
version: 11
- uses: actions/setup-node@v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22
cache: pnpm
Expand Down Expand Up @@ -133,8 +133,8 @@ jobs:
set -euo pipefail
base="${{ steps.vite-base.outputs.base }}"
grep -F "${base}assets/" dist/index.html
! grep -E 'src="/assets/|href="/assets/' dist/index.html
- uses: peaceiris/actions-gh-pages@v4
if grep -qE 'src="/assets/|href="/assets/' dist/index.html; then exit 1; fi
- uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
Expand All @@ -153,7 +153,7 @@ jobs:
"${preview_url}?cache_bust=${GITHUB_SHA}" \
-o /tmp/preview-index.html
grep -F "${base}assets/" /tmp/preview-index.html
! grep -E 'src="/assets/|href="/assets/' /tmp/preview-index.html
if grep -qE 'src="/assets/|href="/assets/' /tmp/preview-index.html; then exit 1; fi
mapfile -t asset_paths < <(grep -oE '(src|href)="[^"]+assets/[^"]+"' /tmp/preview-index.html | sed -E 's/^[^"]+"([^"]+)"/\1/' | sort -u)
if [ "${#asset_paths[@]}" -eq 0 ]; then
echo "No asset paths found in /tmp/preview-index.html" >&2
Expand All @@ -170,7 +170,7 @@ jobs:
curl -fsSL --retry 5 --retry-delay 10 --max-time 90 -o /dev/null "https://${GITHUB_REPOSITORY_OWNER}.github.io${asset_path}"
done
- name: Comment preview URL on PR
uses: actions/github-script@v7
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
env:
PAGES_BASE_PATH: ${{ steps.vite-base.outputs.base }}
PREVIEW_ASSET_LIVE_STATUS: ${{ steps.preview-assets-live.outcome }}
Expand All @@ -182,21 +182,10 @@ jobs:
const assetLivePassed = process.env.PREVIEW_ASSET_LIVE_STATUS === 'success';

const marker = '<!-- loop-protocol-pr-preview -->';
const closingNote = 'The preview will be removed when this PR is closed.';
const body = assetLivePassed
? `${marker}
## Preview URL

✅ verified live assets: ${previewUrl}

> The preview will be removed when this PR is closed.`
: `${marker}
## Preview URL

⏳ publish requested(asset-level live check 未検証 / Pages source 設定後に有効化): ${previewUrl}

> Pages source の設定が必要な場合: Settings → Pages → Source → gh-pages (root)
> base path 修正だけでは hosted runtime 復旧を保証しません。publish trigger / source fault は別問題として切り分けてください。
> The preview will be removed when this PR is closed.`;
? [marker, '## Preview URL', '', `✅ verified live assets: ${previewUrl}`, '', closingNote].join('\n')
: [marker, '## Preview URL', '', `⏳ publish requested(asset-level live check 未検証 / Pages source 設定後に有効化): ${previewUrl}`, '', 'Pages source の設定が必要な場合: Settings → Pages → Source → gh-pages (root)', 'base path 修正だけでは hosted runtime 復旧を保証しません。publish trigger / source fault は別問題として切り分けてください。', closingNote].join('\n');

const allComments = await github.paginate(
github.rest.issues.listComments,
Expand Down Expand Up @@ -247,7 +236,7 @@ jobs:
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
if: steps.check-branch.outputs.exists == 'true'
with:
ref: gh-pages
Expand All @@ -269,7 +258,7 @@ jobs:
if: steps.check-branch.outputs.exists == 'false'
run: echo "gh-pages branch does not exist yet; no-op cleanup."
- name: Update preview URL comment to "Preview removed"
uses: actions/github-script@v7
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
with:
script: |
const prNumber = context.payload.pull_request.number;
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/session-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '22'

- name: Install pnpm
uses: pnpm/action-setup@v6
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
with:
version: '11.1.2'

Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
echo "PASS: belt-and-suspenders public-safe check complete"

- name: Upload session manifest artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: agent-session-manifest-${{ github.run_id }}
path: artifacts/agent-session-manifest-ci.json
Expand Down
Loading