Skip to content

Commit d0cfbb8

Browse files
committed
Refactor YAML workflows for consistent indentation and formatting
1 parent 1717aaf commit d0cfbb8

File tree

3 files changed

+64
-64
lines changed

3 files changed

+64
-64
lines changed

.github/workflows/dependabot-auto-merge.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@ name: dependabot-auto-merge
22
on: pull_request_target
33

44
permissions:
5-
pull-requests: write
6-
contents: write
5+
pull-requests: write
6+
contents: write
77

88
jobs:
9-
dependabot:
10-
runs-on: ubuntu-latest
11-
timeout-minutes: 5
12-
if: ${{ github.actor == 'dependabot[bot]' }}
13-
steps:
14-
- name: Dependabot metadata
15-
id: metadata
16-
uses: dependabot/fetch-metadata@v2.3.0
17-
with:
18-
github-token: '${{ secrets.GITHUB_TOKEN }}'
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 5
12+
if: ${{ github.actor == 'dependabot[bot]' }}
13+
steps:
14+
- name: Dependabot metadata
15+
id: metadata
16+
uses: dependabot/fetch-metadata@v2.3.0
17+
with:
18+
github-token: '${{ secrets.GITHUB_TOKEN }}'
1919

20-
- name: Auto-merge Dependabot PRs for semver-minor updates
21-
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
22-
run: gh pr merge --auto --merge "$PR_URL"
23-
env:
24-
PR_URL: ${{github.event.pull_request.html_url}}
25-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
20+
- name: Auto-merge Dependabot PRs for semver-minor updates
21+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
22+
run: gh pr merge --auto --merge "$PR_URL"
23+
env:
24+
PR_URL: ${{github.event.pull_request.html_url}}
25+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2626

27-
- name: Auto-merge Dependabot PRs for semver-patch updates
28-
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
29-
run: gh pr merge --auto --merge "$PR_URL"
30-
env:
31-
PR_URL: ${{github.event.pull_request.html_url}}
32-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
27+
- name: Auto-merge Dependabot PRs for semver-patch updates
28+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
29+
run: gh pr merge --auto --merge "$PR_URL"
30+
env:
31+
PR_URL: ${{github.event.pull_request.html_url}}
32+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
name: Fix PHP code style issues
22

33
on:
4-
push:
5-
paths:
6-
- '**.php'
4+
push:
5+
paths:
6+
- '**.php'
77

88
permissions:
9-
contents: write
9+
contents: write
1010

1111
jobs:
12-
php-code-styling:
13-
runs-on: ubuntu-latest
14-
timeout-minutes: 5
12+
php-code-styling:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 5
1515

16-
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v4
19-
with:
20-
ref: ${{ github.head_ref }}
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.head_ref }}
2121

22-
- name: Fix PHP code style issues
23-
uses: aglipanci/laravel-pint-action@2.5
22+
- name: Fix PHP code style issues
23+
uses: aglipanci/laravel-pint-action@2.5
2424

25-
- name: Commit changes
26-
uses: stefanzweifel/git-auto-commit-action@v5
27-
with:
28-
commit_message: Fix styling
25+
- name: Commit changes
26+
uses: stefanzweifel/git-auto-commit-action@v5
27+
with:
28+
commit_message: Fix styling
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
name: 'Update Changelog'
22

33
on:
4-
release:
5-
types: [released]
4+
release:
5+
types: [released]
66

77
permissions:
8-
contents: write
8+
contents: write
99

1010
jobs:
11-
update:
12-
runs-on: ubuntu-latest
13-
timeout-minutes: 5
11+
update:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 5
1414

15-
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v4
18-
with:
19-
ref: 3.x
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
ref: 3.x
2020

21-
- name: Update Changelog
22-
uses: stefanzweifel/changelog-updater-action@v1
23-
with:
24-
latest-version: ${{ github.event.release.name }}
25-
release-notes: ${{ github.event.release.body }}
21+
- name: Update Changelog
22+
uses: stefanzweifel/changelog-updater-action@v1
23+
with:
24+
latest-version: ${{ github.event.release.name }}
25+
release-notes: ${{ github.event.release.body }}
2626

27-
- name: Commit updated CHANGELOG
28-
uses: stefanzweifel/git-auto-commit-action@v5
29-
with:
30-
branch: 3.x
31-
commit_message: Update CHANGELOG
32-
file_pattern: CHANGELOG.md
27+
- name: Commit updated CHANGELOG
28+
uses: stefanzweifel/git-auto-commit-action@v5
29+
with:
30+
branch: 3.x
31+
commit_message: Update CHANGELOG
32+
file_pattern: CHANGELOG.md

0 commit comments

Comments
 (0)