5
5
workflow_call :
6
6
push :
7
7
branches :
8
- - main
8
+ - test-tagging
9
9
10
10
permissions :
11
11
contents : write
@@ -15,30 +15,19 @@ 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
21
+ id : publish-crates
27
22
with :
28
23
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
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).* }}
30
+ # if: ${{ steps.publish-crates.outputs.published == '[]' }}
33
31
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