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,22 @@ 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
18
+ # - uses: googleapis/release-please-action@v4
19
+ # with:
20
+ # token: ${{ secrets.BE_SDK_PAT }}
21
+ # id: release
22
22
- uses : actions/checkout@v4
23
- if : ${{ steps.release.outputs.release_created }}
23
+ # if: ${{ steps.release.outputs.release_created }}
24
24
- uses : dtolnay/rust-toolchain@stable
25
- if : ${{ steps.release.outputs.release_created }}
25
+ # if: ${{ steps.release.outputs.release_created }}
26
26
- uses : katyo/publish-crates@v2
27
27
with :
28
28
registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
29
- if : ${{ steps.release.outputs.release_created }}
29
+ dry-run : true
30
+ # if: ${{ steps.release.outputs.release_created }}
30
31
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#creating-majorminor-tags
31
32
- 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 == '[]' }}
33
35
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