We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9509006 commit 765cb28Copy full SHA for 765cb28
.github/workflows/release.yml
@@ -94,5 +94,16 @@ jobs:
94
- uses: actions/checkout@v4
95
- uses: dtolnay/rust-toolchain@stable
96
- name: Publish agentic-codebase crate
97
- run: cargo publish --token "${{ secrets.CARGO_REGISTRY_TOKEN }}"
98
- continue-on-error: true
+ shell: bash
+ run: |
99
+ set -euo pipefail
100
+ if ! output="$(cargo publish --token "${{ secrets.CARGO_REGISTRY_TOKEN }}" 2>&1)"; then
101
+ echo "$output"
102
+ if echo "$output" | grep -qi "already uploaded"; then
103
+ echo "agentic-codebase already published for this version; continuing."
104
+ else
105
+ exit 1
106
+ fi
107
108
109
0 commit comments