Skip to content

Commit

Permalink
prevent run on main branch
Browse files Browse the repository at this point in the history
- ci: prevent run on main branch multiple contains
  • Loading branch information
msftcangoblowm committed Aug 31, 2024
1 parent e3741da commit c5e9444
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/branch-test-others.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
# If it doesn't finish in an hour, it's not going to. Don't spin for six
# hours needlessly.
timeout-minutes: 60

if:
${{ !(contains('-notests, github.ref) || contains(refs/heads/$default-branch', github.ref)) }}
strategy:
matrix:
os:
Expand Down Expand Up @@ -80,7 +81,8 @@ jobs:
success:
name: Jobs successful
# The tests didn't run if the branch name includes "-notests"
if: "!contains(github.ref, '-notests')"
if:
${{ !(contains('-notests, github.ref) || contains(refs/heads/$default-branch', github.ref)) }}
needs:
- tests-other
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ Changelog

.. scriv-start-here
.. _changes_1-2-2p0:

Version 1.2.2.post0 — 2024-08-31
--------------------------------

- ci: prevent run on main branch multiple contains

.. _changes_1-2-2:

Version 1.2.2 — 2024-08-31
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# The short X.Y.Z version.
version = "1.2.2"
# The full version, including alpha/beta/rc tags.
release = "1.2.2"
release = "1.2.2.post0"
# The date of release, in "monthname day, year" format.
release_date = "August 31, 2024"
# @@@ end
Expand Down

0 comments on commit c5e9444

Please sign in to comment.