diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 1fca827..3536932 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -30,6 +30,7 @@ jobs: persist-credentials: false - name: Ensure release tag is on main env: + GITHUB_TOKEN: ${{ github.token }} TAG: ${{ inputs.tag }} run: | case "$TAG" in @@ -38,12 +39,13 @@ jobs: esac git check-ref-format "refs/tags/$TAG" - remote_tag="$(git ls-remote --exit-code --tags --refs origin "refs/tags/$TAG")" + authenticated_origin="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" + remote_tag="$(git ls-remote --exit-code --tags --refs "$authenticated_origin" "refs/tags/$TAG")" remote_ref="$(printf '%s\n' "$remote_tag" | awk '{print $2}')" test "$remote_ref" = "refs/tags/$TAG" - git fetch --no-tags origin +refs/heads/main:refs/remotes/origin/main - git fetch --no-tags origin "+refs/tags/$TAG:refs/tags/$TAG" + git fetch --no-tags "$authenticated_origin" +refs/heads/main:refs/remotes/origin/main + git fetch --no-tags "$authenticated_origin" "+refs/tags/$TAG:refs/tags/$TAG" local_ref="$(git for-each-ref --format='%(refname)' "refs/tags/$TAG")" test "$local_ref" = "refs/tags/$TAG" diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b55c11f..9c6a481 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.1.1" + ".": "1.1.2" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d5e6777..73d0667 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.1.2 (2026-05-07) + +Full Changelog: [v1.1.1...v1.1.2](https://github.com/openai/openai-cli/compare/v1.1.1...v1.1.2) + ## 1.1.1 (2026-05-07) Full Changelog: [v1.1.0...v1.1.1](https://github.com/openai/openai-cli/compare/v1.1.0...v1.1.1) diff --git a/pkg/cmd/version.go b/pkg/cmd/version.go index ef6b949..e8cefce 100644 --- a/pkg/cmd/version.go +++ b/pkg/cmd/version.go @@ -2,4 +2,4 @@ package cmd -const Version = "1.1.1" // x-release-please-version +const Version = "1.1.2" // x-release-please-version