chore(deps): update node.js to v22.13.0 #6104
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: MIT OR GPL-3.0-or-later | |
name: readme-update | |
permissions: | |
contents: write | |
on: | |
push: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Deploy | |
run: | | |
set -x | |
git fetch --depth=1 origin main | |
git fetch --depth=1 origin README | |
git fetch --depth=1 origin website || true | |
git fetch --depth=1 origin unplanned-release || true | |
mkdir readme | |
cd readme | |
cp -r ../.git .git | |
git checkout README | |
cp -r ../.github . | |
rm -r .github/workflows/ | |
mkdir .github/workflows/ | |
cp ../.github/workflows/gh-pages.yml .github/workflows/ | |
cp ../.github/workflows/close-resolved-stale-issues.yml .github/workflows/ | |
cp ../.github/workflows/release-please.yml .github/workflows/ | |
cp ../README.md . | |
find . -maxdepth 1 -name "LICENSE*" -exec rm {} \; | |
find .. -maxdepth 1 -name "LICENSE*" -exec cp {} . \; | |
git add . | |
if git diff --cached --exit-code; then | |
exit 0 | |
fi | |
git status | |
git config --global user.email "isamu@leafytree.jp" | |
git config --global user.name "[BOT] Isamu Mogi" | |
git commit -m "docs: update README to $GITHUB_SHA [BOT]" | |
case "$GITHUB_SHA" in | |
"") exit 0;; | |
"$(git rev-parse origin/main)");; | |
"$(git rev-parse origin/website || true)");; | |
"$(git rev-parse origin/unplanned-release || true)");; | |
*) exit 0;; | |
esac | |
git push origin README |