diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7af1b3b3a..a1206f3a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: - name: Validate tag pattern id: validate_tag run: | - if [[ "${TAG_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + if [[ "${TAG_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?$ ]]; then echo "TAG_VALID=true" >> $GITHUB_ENV else echo "TAG_VALID=false" >> $GITHUB_ENV @@ -110,3 +110,12 @@ jobs: repository: ObolNetwork/dv-launchpad event-type: update-version client-payload: '{"tag": "${{ env.TAG_NAME }}"}' + + - name: Trigger dispatch for obol-infrastructure + uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 + if: env.TAG_VALID == 'true' + with: + token: ${{ secrets.OBOL_PLATFORM_PAT }} + repository: ObolNetwork/obol-infrastructure + event-type: update-version + client-payload: '{"tag": "${{ env.TAG_NAME }}"}' diff --git a/.github/workflows/tag-minor-full-release.yml b/.github/workflows/tag-minor-full-release.yml index 1b4da57a6..9147e684c 100644 --- a/.github/workflows/tag-minor-full-release.yml +++ b/.github/workflows/tag-minor-full-release.yml @@ -130,8 +130,8 @@ jobs: TAG_VERSION="${{ steps.version.outputs.TAG_VERSION }}" RELEASE_BRANCH="${{ steps.find_branch.outputs.RELEASE_BRANCH }}" - # Create annotated tag - git tag -a "${TAG_VERSION}" -m "Release ${TAG_VERSION}" + # Create tag + git tag "${TAG_VERSION}" -m "Release ${TAG_VERSION}" # Push tag to remote git push origin "${TAG_VERSION}" diff --git a/.github/workflows/tag-minor-release-candidate.yml b/.github/workflows/tag-minor-release-candidate.yml index 29b919830..64bed6fab 100644 --- a/.github/workflows/tag-minor-release-candidate.yml +++ b/.github/workflows/tag-minor-release-candidate.yml @@ -108,8 +108,8 @@ jobs: run: | NEW_TAG="${{ steps.latest_rc.outputs.NEW_TAG }}" - # Create annotated tag - git tag -a "$NEW_TAG" -m "Release candidate $NEW_TAG" + # Create tag + git tag "$NEW_TAG" -m "Release candidate $NEW_TAG" # Push tag git push origin "$NEW_TAG" diff --git a/.github/workflows/tag-patch-full-release.yml b/.github/workflows/tag-patch-full-release.yml index 0161f8599..f79c188b6 100644 --- a/.github/workflows/tag-patch-full-release.yml +++ b/.github/workflows/tag-patch-full-release.yml @@ -162,8 +162,8 @@ jobs: TAG_VERSION="${{ steps.find_patch.outputs.TAG_VERSION }}" RELEASE_BRANCH="${{ steps.find_branch.outputs.RELEASE_BRANCH }}" - # Create annotated tag - git tag -a "${TAG_VERSION}" -m "Release ${TAG_VERSION}" + # Create tag + git tag "${TAG_VERSION}" -m "Release ${TAG_VERSION}" # Push tag to remote git push origin "${TAG_VERSION}" diff --git a/.github/workflows/tag-patch-release-candidate.yml b/.github/workflows/tag-patch-release-candidate.yml index bc16ab303..e0683f37c 100644 --- a/.github/workflows/tag-patch-release-candidate.yml +++ b/.github/workflows/tag-patch-release-candidate.yml @@ -141,8 +141,8 @@ jobs: run: | NEW_TAG="${{ steps.latest_rc.outputs.NEW_TAG }}" - # Create annotated tag - git tag -a "$NEW_TAG" -m "Release candidate $NEW_TAG" + # Create tag + git tag "$NEW_TAG" -m "Release candidate $NEW_TAG" # Push tag git push origin "$NEW_TAG"