Skip to content

Commit

Permalink
Merge branch 'release/noble-sea-lemon' into chore/CE-749-no-complaint…
Browse files Browse the repository at this point in the history
…s-message
  • Loading branch information
afwilcox authored Oct 21, 2024
2 parents a774ee8 + 4f34914 commit 6849806
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/pr-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ jobs:
if: ${{ github.event.pull_request.merged == true }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
fetch-tags: true

- name: Fetch all tags
run: git fetch --tags --force

- name: Fetch tags from main
id: get_latest_tag
run: |
git fetch origin main --tags
git fetch origin main --tags --force
latest_tag=$(git tag --list --sort=-v:refname --merged | head -n 1)
echo "::set-output name=latest_tag::$latest_tag"
echo "Latest tag: $latest_tag"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release-branch-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
if: startsWith(github.ref, 'refs/heads/release/') && !contains(github.ref, '/')
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
fetch-tags: true

- name: Install npm
run: sudo apt-get install -y npm
Expand All @@ -19,7 +23,7 @@ jobs:
- name: Fetch latest tag
id: latest_tag
run: |
git fetch --tags
git fetch --tags --force
latest_tag=$(git tag --list --sort=-v:refname --merged | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
if [ -z "$latest_tag" ]; then
echo "No previous tags found, starting with v0.1.0"
Expand Down

0 comments on commit 6849806

Please sign in to comment.