File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "." : {
55 "release-type" : " python" ,
66 "package-name" : " google-adk-community" ,
7+ "include-component-in-tag" : false ,
78 "draft" : true ,
89 "changelog-path" : " CHANGELOG.md" ,
910 "changelog-sections" : [
Original file line number Diff line number Diff line change @@ -37,13 +37,27 @@ jobs:
3737 with :
3838 ref : ${{ steps.vars.outputs.branch }}
3939
40+ - name : Check if version already released
41+ id : check
42+ run : |
43+ TARGET="${{ steps.vars.outputs.version }}"
44+ CURRENT=$(jq -r '."."' .github/.release-please-manifest.json)
45+ if [ "$CURRENT" == "$TARGET" ]; then
46+ echo "Version $TARGET already released, skipping"
47+ echo "skip=true" >> $GITHUB_OUTPUT
48+ else
49+ echo "skip=false" >> $GITHUB_OUTPUT
50+ fi
51+
4052 - name : Set release-as version
53+ if : steps.check.outputs.skip != 'true'
4154 run : |
4255 jq --arg version "${{ steps.vars.outputs.version }}" \
4356 '.packages["."]["release-as"] = $version' \
4457 .github/release-please-config.json > tmp.json && mv tmp.json .github/release-please-config.json
4558
4659 - uses : googleapis/release-please-action@v4
60+ if : steps.check.outputs.skip != 'true'
4761 id : release
4862 with :
4963 token : ${{ secrets.RELEASE_PAT }}
You can’t perform that action at this time.
0 commit comments