diff --git a/.github/workflows/branch-merge.yml b/.github/workflows/branch-merge.yml index 700027a..8e1109b 100644 --- a/.github/workflows/branch-merge.yml +++ b/.github/workflows/branch-merge.yml @@ -2,7 +2,7 @@ name: Merge Branch on: push: - branches: [ imgbot ] + branches: [imgbot] jobs: merge-branch: @@ -15,4 +15,4 @@ jobs: github_token: ${{ github.token }} source_ref: ${{ github.ref }} target_branch: main - commit_message_template: '[Automated] Merged {source_ref} into {target_branch}' + commit_message_template: "[Automated] Merged {source_ref} into {target_branch}" diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index e65ffa1..a433c20 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -2,22 +2,22 @@ name: Prettier on: push: - branches: [ main ] + branches: [main] jobs: prettier: runs-on: ubuntu-latest if: github.repository == 'doocs/advanced-java' steps: - - name: Checkout - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} + - name: Checkout + uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} - - name: Prettify - uses: creyD/prettier_action@v3.3 - with: - prettier_options: --write **/*.{md} - commit_message: 'style: prettify code or document' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Prettify + uses: creyD/prettier_action@v3.3 + with: + prettier_options: --write **/*.{md} + commit_message: "style: prettify code or document" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index 157070d..97d4d89 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -1,6 +1,6 @@ name: Automatic Rebase -on: +on: issue_comment: types: [created] @@ -10,11 +10,11 @@ jobs: if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') runs-on: ubuntu-latest steps: - - name: Checkout the latest code - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Automatic Rebase - uses: cirrus-actions/rebase@1.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout the latest code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Automatic Rebase + uses: cirrus-actions/rebase@1.4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 40e6d52..bc25d94 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -2,7 +2,7 @@ name: Sync on: push: - branches: [ main ] + branches: [main] jobs: build: