Skip to content

Astro.jsを作成したものに変更 #8

Astro.jsを作成したものに変更

Astro.jsを作成したものに変更 #8

Workflow file for this run

name: Lint Project
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install packages
run: pnpm install
- name: Format
run: pnpm run format
- name: Determine the branch name
id: get_branch
run: echo "branch=$(echo ${GITHUB_HEAD_REF})" >> $BRANCH_NAME
run: echo "::set-output name=branch::$(echo ${GITHUB_HEAD_REF})"

Check failure on line 34 in .github/workflows/format.yaml

View workflow run for this annotation

GitHub Actions / Lint Project

Invalid workflow file

The workflow is not valid. .github/workflows/format.yaml (Line: 34, Col: 9): 'run' is already defined
- name: Commit Format
run: |
git add -N . # 新規ファイルを含める
if ! git diff --exit-code --quiet
then
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "chore: fix format."
git push origin HEAD:${BRANCH_NAME}
fi
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- name: Exec Lint
run: pnpm run lint