File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1414 default : false
1515
1616permissions :
17+ # trust publish needs
1718 id-token : write
19+ # push tag
20+ contents : write
1821
1922jobs :
2023 release-plz :
4750 CARGO_REGISTRY_TOKEN : ${{ steps.auth.outputs.token }}
4851
4952 - name : Push tag
50- run : git push origin ${{ inputs.commit }}
53+ run : |
54+ version=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "crate_name") | .version')
55+ echo tagging v$version
56+ git config --global --add safe.directory /github/workspace
57+ git config --global user.name "github-actions[bot]"
58+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
59+ git status
60+ # git tag v$version -m v$version
61+ # git push origin --follow-tags
You can’t perform that action at this time.
0 commit comments