From d565c5bb92be8debd17a1674e8406247dd0d15ef Mon Sep 17 00:00:00 2001 From: atsuyaw Date: Tue, 22 Oct 2024 23:26:19 +0900 Subject: [PATCH] fix: Syntax error --- .github/workflows/lint.yml | 23 ----------------------- .github/workflows/release.yml | 29 +++++++++++++++-------------- 2 files changed, 15 insertions(+), 37 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 13ca546f..86b8c497 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,29 +10,6 @@ concurrency: cancel-in-progress: true jobs: - markdownlint: - runs-on: ubuntu-22.04 - permissions: - contents: write - pull-requests: write - if: ${{ github.ref }} == 'refs/heads/main' - steps: - - uses: actions/checkout@v4 - - name: Run markdownlint-cli2-action@v17 - uses: DavidAnson/markdownlint-cli2-action@v17 - with: - fix: true - globs: '**/*.md' - continue-on-error: true - - name: Run create-pull-request - uses: peter-evans/create-pull-request@v7 - with: - author: >- - github-actions[bot] - <41898282+github-actions[bot]@users.noreply.github.com> - commit-message: "fix: Lint suggestions" - branch: "patch/${{ github.ref_name }}" - title: "fix: Lint suggestions for ${{ github.ref_name }}" yamllint: runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a90a4715..5e478a29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release "on": create: pull_request: - types: [opened,synchronize] + types: [opened, synchronize] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -12,24 +12,25 @@ concurrency: jobs: openPR: runs-on: ubuntu-22.04 + permissions: + pull-requests: read steps: - uses: actions/checkout@v4 - - uses: tj-actions/changed-files@v40 + - uses: tj-actions/changed-files@v45 id: updCont with: - files: - - "content/**" - - "data/**" - - uses: tj-actions/changed-files@v40 + files: | + content/** + data/** + - uses: tj-actions/changed-files@v45 id: updSrc with: - files: - - ".github/**" - - "./**" - - "layout/**" - - "static/**" + files: | + * + !content/** + !data/** - name: Create PR - if: {{ github.event_name != create }} + if: ${{ github.event_name }} != create env: GH_TOKEN: ${{ github.token }} run: | @@ -40,13 +41,13 @@ jobs: --body "" \ --draft - name: Mark as post - if: {{ steps.updCont.outputs.any_changed }} + if: steps.updCont.outputs.any_changed == "true" env: GH_TOKEN: ${{ github.token }} run: | gh pr edit --add-label "create post" - name: Mark as dev - if: {{ steps.updSrc.outputs.any_changed }} + if: steps.updSrc.outputs.any_changed == "true" env: GH_TOKEN: ${{ github.token }} run: |