Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c318a69

Browse files
committedJan 16, 2025·
testing
1 parent 0002a47 commit c318a69

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed
 

‎.github/workflows/release.yml

+9-20
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,19 @@ 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
2218
- uses: actions/checkout@v4
23-
if: ${{ steps.release.outputs.release_created }}
2419
- uses: dtolnay/rust-toolchain@stable
25-
if: ${{ steps.release.outputs.release_created }}
2620
- uses: katyo/publish-crates@v2
21+
id: publish-crates
2722
with:
2823
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
29-
if: ${{ steps.release.outputs.release_created }}
24+
dry-run: true
25+
check-repo: false
26+
no-verify: true
27+
ignore-unpublished-changes: true
3028
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#creating-majorminor-tags
3129
- name: Tag versions
32-
if: ${{ steps.release.outputs.release_created && fromJSON(steps.publish-crates.outputs.published).* }}
30+
# if: ${{ steps.publish-crates.outputs.published == '[]' }}
3331
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 }}
32+
echo "Tagging versions"
33+
echo ${{steps.publish-crates.outputs.published}}

0 commit comments

Comments
 (0)
Please sign in to comment.