Skip to content

Commit

Permalink
ci: Skip version check for Dependabot
Browse files Browse the repository at this point in the history
This will always fail on Dependabot PRs, since it doesn't increment
the version, and thus will always be equal to, or behind, the latest
GitHub release.

This means that we can merge Dependabot PRs in, and for them to be
released, we'd need to do a release.
  • Loading branch information
jesse-c committed Jul 22, 2024
1 parent 0ef77ee commit 50c84a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:

package-version-checks:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: ./.github/actions/fixme-checks

package-version-checks:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Check out repository code
Expand Down Expand Up @@ -58,6 +59,7 @@ jobs:
uses: ./.github/actions/test

publish:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
needs: [test]
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion src/cpr_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_MAJOR = "1"
_MINOR = "1"
_PATCH = "6"
_PATCH = "7"
_SUFFIX = ""

VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR)
Expand Down

0 comments on commit 50c84a3

Please sign in to comment.