From c5a11cf522bc96efb221103a0958ccb955f517cd Mon Sep 17 00:00:00 2001 From: Mathew Gacy Date: Wed, 17 Jan 2024 09:04:10 -0700 Subject: [PATCH] Configure Dependabot + Workflow Tweaks (#11) * Add dependabot config * Label PR to exclude from release notes * Add paths filter * Include `Package.resolved` in filter --- .github/dependabot.yml | 7 +++++++ .github/workflows/prepare-release.yml | 1 + .github/workflows/tests.yml | 8 ++++++++ 3 files changed, 16 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f3b3e1e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file +version: 2 +updates: + - package-ecosystem: "swift" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index e167d7b..17f4a2d 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -35,4 +35,5 @@ jobs: title: '[CI] Prepare Version ${{ steps.bump.outputs.version }} Release' body: | Update `Version.swift` with bumped version number. + labels: ci draft: false diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bff8d6b..ee72ead 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,12 +5,20 @@ on: workflow_dispatch: push: branches: [ main ] + paths: + - '.github/workflows/tests.yml' + - '**.swift' + - 'Package.resolved' pull_request: types: - opened - reopened - synchronize - ready_for_review + paths: + - '.github/workflows/tests.yml' + - '**.swift' + - 'Package.resolved' jobs: unit_tests: