Skip to content

Commit a0ede9f

Browse files
chore(workflows): Upgrade github-push-action and format Dependabot conditions
Updates the `ad-m/github-push-action` dependency from version v1.2.0 to v1.3.0 in both the primary `.github/workflows/Auto.yml` and the internal `Workflow/Auto.yml` template. This ensures the automated push jobs utilize the latest features and fixes available in the action. Additionally, this commit reformats the conditional logic (`if` statements) in `Workflow/InnerDependabot.yml`. The complex boolean checks for `dependabot[bot]` in the `Approve` and `Merge` jobs have been split across multiple lines. This change improves the readability of the workflow definitions and aligns them with consistent YAML formatting standards, making future maintenance of these conditions easier. These changes affect the CI/CD pipeline's reliability and code clarity without altering the underlying business logic.
1 parent dbbab6e commit a0ede9f

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/Auto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
git add .
6363
git commit -a --allow-empty-message -m ""
6464
65-
- uses: ad-m/github-push-action@v1.2.0
65+
- uses: ad-m/github-push-action@v1.3.0
6666
with:
6767
github_token: ${{ secrets.GITHUB_TOKEN }}
6868
branch: Current

Workflow/Auto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
git add .
6363
git commit -a --allow-empty-message -m ""
6464
65-
- uses: ad-m/github-push-action@v1.2.0
65+
- uses: ad-m/github-push-action@v1.3.0
6666
with:
6767
github_token: ${{ secrets.GITHUB_TOKEN }}
6868
branch: Current

Workflow/InnerDependabot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
Approve:
1616
runs-on: ubuntu-latest
1717

18-
if: ${{ github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]' }}
18+
if:
19+
${{ github.actor == 'dependabot[bot]' &&
20+
github.event.pull_request.user.login == 'dependabot[bot]' }}
1921

2022
steps:
2123
- uses: dependabot/fetch-metadata@v3.1.0
@@ -31,7 +33,9 @@ jobs:
3133
runs-on: ubuntu-latest
3234
needs: Approve
3335

34-
if: ${{ github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]' }}
36+
if:
37+
${{ github.actor == 'dependabot[bot]' &&
38+
github.event.pull_request.user.login == 'dependabot[bot]' }}
3539

3640
steps:
3741
- uses: dependabot/fetch-metadata@v3.1.0

0 commit comments

Comments
 (0)