Skip to content

Commit 6d1be3c

Browse files
committed
testing
1 parent 0002a47 commit 6d1be3c

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_call:
66
push:
77
branches:
8-
- main
8+
- test-tagging
99

1010
permissions:
1111
contents: write
@@ -15,30 +15,22 @@ jobs:
1515
release:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: googleapis/release-please-action@v4
19-
with:
20-
token: ${{ secrets.BE_SDK_PAT }}
21-
id: release
18+
# - uses: googleapis/release-please-action@v4
19+
# with:
20+
# token: ${{ secrets.BE_SDK_PAT }}
21+
# id: release
2222
- uses: actions/checkout@v4
23-
if: ${{ steps.release.outputs.release_created }}
23+
# if: ${{ steps.release.outputs.release_created }}
2424
- uses: dtolnay/rust-toolchain@stable
25-
if: ${{ steps.release.outputs.release_created }}
25+
# if: ${{ steps.release.outputs.release_created }}
2626
- uses: katyo/publish-crates@v2
2727
with:
2828
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
29-
if: ${{ steps.release.outputs.release_created }}
29+
dry-run: true
30+
# if: ${{ steps.release.outputs.release_created }}
3031
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#creating-majorminor-tags
3132
- name: Tag versions
32-
if: ${{ steps.release.outputs.release_created && fromJSON(steps.publish-crates.outputs.published).* }}
33+
# if: ${{ steps.release.outputs.release_created && fromJSON(steps.publish-crates.outputs.published).* }}
34+
if: ${{ steps.publish-crates.outputs.published == '[]' }}
3335
run: |
34-
git config user.name github-actions[bot]
35-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
36-
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git"
37-
git tag -d v${{ steps.release.outputs.major }} || true
38-
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
39-
git push origin :v${{ steps.release.outputs.major }} || true
40-
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
41-
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
42-
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
43-
git push origin v${{ steps.release.outputs.major }}
44-
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
36+
echo "Tagging versions"

0 commit comments

Comments
 (0)