Skip to content

Commit

Permalink
fix: Syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
atsuyaw committed Oct 22, 2024
1 parent 00f41c7 commit d565c5b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 37 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
29 changes: 15 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
"on":
create:
pull_request:
types: [opened,synchronize]
types: [opened, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -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: |
Expand All @@ -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: |
Expand Down

0 comments on commit d565c5b

Please sign in to comment.