5
5
workflow_call :
6
6
push :
7
7
branches :
8
- - main
8
+ - test-tagging-bert
9
9
10
10
permissions :
11
11
contents : write
@@ -15,30 +15,20 @@ jobs:
15
15
release :
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : googleapis/release-please-action@v4
19
- with :
20
- token : ${{ secrets.BE_SDK_PAT }}
21
- id : release
22
18
- uses : actions/checkout@v4
23
- if : ${{ steps.release.outputs.release_created }}
24
19
- uses : dtolnay/rust-toolchain@stable
25
- if : ${{ steps.release.outputs.release_created }}
26
20
- uses : katyo/publish-crates@v2
27
21
with :
28
22
registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
29
- if : ${{ steps.release.outputs.release_created }}
23
+ dry-run : true
24
+ check-repo : false
25
+ no-verify : true
26
+ ignore-unpublished-changes : true
27
+ id : publish-crates
30
28
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#creating-majorminor-tags
31
29
- name : Tag versions
32
- if : ${{ steps.release.outputs.release_created && fromJSON(steps.publish-crates.outputs.published).* }}
33
30
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 }}
31
+ echo "Tagging versions"
32
+ echo "published: ${{ steps.publish-crates.outputs.published }}"
33
+ echo "conclusion: ${{ steps.publish-crates.conclusion }}"
34
+ echo "outcome: ${{ steps.publish-crates.outcome }}"
0 commit comments