diff --git a/.github/_project-dependabot.yml b/.github/_project-dependabot.yml index 711e97d..6ed6e57 100644 --- a/.github/_project-dependabot.yml +++ b/.github/_project-dependabot.yml @@ -3,7 +3,7 @@ updates: - package-ecosystem: pip directory: / schedule: - interval: weekly + interval: monthly versioning-strategy: increase-if-necessary commit-message: prefix: build diff --git a/.github/dependabot.yml b/.github/dependabot.yml index db513a1..1310301 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,7 +3,7 @@ updates: - package-ecosystem: github-actions directory: / schedule: - interval: weekly + interval: monthly commit-message: prefix: ci include: scope diff --git a/.github/sync.yml b/.github/sync.yml index cd6be58..1303385 100644 --- a/.github/sync.yml +++ b/.github/sync.yml @@ -23,11 +23,14 @@ group: dest: .github/pull_request_template.md # Actions - - source: .github/workflows/ - dest: .github/workflows/ - deleteOrphaned: true - exclude: | - sync-files.yml + - source: .github/workflows/add-to-project.yml + dest: .github/workflows/add-to-project.yml + - source: .github/workflows/build-package.yml + dest: .github/workflows/build-package.yml + - source: .github/workflows/build-website.yml + dest: .github/workflows/build-website.yml + - source: .github/workflows/update-version.yml + dest: .github/workflows/update-version.yml - source: .github/_project-dependabot.yml dest: .github/dependabot.yml diff --git a/.github/workflows/delete-environment.yml b/.github/workflows/delete-environment.yml deleted file mode 100644 index 19e28c7..0000000 --- a/.github/workflows/delete-environment.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Delete GitHub environment after merging - -on: - pull_request: - types: [closed] - branches: - - main - -jobs: - delete-environment: - # TODO: Remove this `if` and fix the workflow once we start deploying to Fly again. - if: false - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - # TODO: This wasn't working correctly. - # This removes left over environments in GitHub from the building and deploying. - - name: Clean up GitHub environment - run: | - gh api \ - --method DELETE \ - -H "Accept: application/vnd.github+json" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - /repos/seedcase-project/${{ github.event.repository.name }}/environments/pr-${{ github.event.number }} - env: - GH_TOKEN: ${{ secrets.DELETE_ENV_TOKEN }} diff --git a/.github/workflows/puml-to-svg.yml b/.github/workflows/puml-to-svg.yml deleted file mode 100644 index 3a2b8c9..0000000 --- a/.github/workflows/puml-to-svg.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Generate SVG from PlantUML - -on: - pull_request: - paths: - - '**.puml' - -jobs: - generate-plantuml: - uses: seedcase-project/.github/.github/workflows/reusable-puml-to-svg.yml@main - secrets: - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c9fd11a..0385ab2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,17 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks ci: - autofix_commit_msg: "chore(pre-commit): :pencil2: automatic fixes" - autoupdate_commit_msg: "ci(pre-commit): :construction_worker: update pre-commit CI version" + autofix_commit_msg: "chore(pre-commit): :pencil2: automatic fixes" + autoupdate_commit_msg: "ci(pre-commit): :construction_worker: update pre-commit CI version" repos: -- repo: https://github.com/pre-commit/pre-commit-hooks + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - - id: trailing-whitespace - - id: end-of-file-fixer + - id: trailing-whitespace + - id: end-of-file-fixer -- repo: https://github.com/commitizen-tools/commitizen - rev: v3.30.0 + - repo: https://github.com/commitizen-tools/commitizen + rev: v4.1.0 hooks: - - id: commitizen + - id: commitizen