Skip to content

Commit

Permalink
pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Dec 23, 2024
1 parent 344fbd0 commit 27bccea
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Maintenance
name: Example/test maintenance (package-lock updating, formatting, linting)
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -44,16 +44,14 @@ jobs:
- uses: ./.github/actions/commit_and_push
with:
branch-name: ${{ needs.create-branch-prefix.outputs.base-branch }}
commit-message: 'Run global prettier and eslint fixes'
commit-message: 'Example/test maintenance: formatting and linting'
gpg-signing-key: ${{ secrets.GPG_SIGNING_KEY }}
signing-key-id: ${{ inputs.signing-key-id }}

- id: get-test-infos
uses: ./.github/actions/get_test_infos
with:
directories: |
./examples
./tests
directories: ./examples

update-test-dependencies:
needs:
Expand Down Expand Up @@ -93,21 +91,20 @@ jobs:
- uses: ./.github/actions/commit_and_push
with:
branch-name: ${{ steps.create-branch-name.outputs.branch-name }}
commit-message: 'Update dependencies for ${{ matrix.test.displayPath }}'
commit-message: 'Example/test maintenance: update dependencies'
gpg-signing-key: ${{ secrets.GPG_SIGNING_KEY }}
create-branch: 'true'
signing-key-id: ${{ inputs.signing-key-id }}

squash-branches:
needs:
- prepare-maintenance
- update-test-dependencies
- create-branch-prefix
uses: ./.github/workflows/squash_branches.yml
with:
base-branch: ${{ needs.create-branch-prefix.outputs.base-branch }}
branch-prefix: ${{ needs.create-branch-prefix.outputs.branch-prefix }}
commit-message: 'Maintenance: Update dependencies and fix formatting'
commit-message: 'Example/test maintenance: update dependencies'
signing-key-id: ${{ inputs.signing-key-id }}
secrets:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
Expand All @@ -116,7 +113,6 @@ jobs:

create-pr:
needs:
- prepare-maintenance
- squash-branches
- create-branch-prefix
runs-on: ubuntu-latest
Expand All @@ -132,7 +128,7 @@ jobs:
gh pr create \
--base main \
--head ${{ needs.create-branch-prefix.outputs.base-branch }} \
--title "Maintenance: Update dependencies and fix formatting" \
--title "Example/test maintenance: update dependencies, formatting, and linting" \
--body "Automated PR for maintenance tasks:
- Updated package-lock.json files
- Fixed formatting with Prettier
Expand Down

0 comments on commit 27bccea

Please sign in to comment.