File tree Expand file tree Collapse file tree 2 files changed +22
-12
lines changed
Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -108,26 +108,17 @@ jobs:
108108 VERSION : ${{ needs.compute-version.outputs.version }}
109109 run : |
110110 CURRENT_TAG="cli_v$VERSION"
111- PREV_TAG=""
112- LAST_TAG=""
113-
114- while IFS= read -r tag; do
115- if [[ "$tag" == "$CURRENT_TAG" ]]; then
116- PREV_TAG="$LAST_TAG"
117- break
118- fi
119- LAST_TAG="$tag"
120- done < <(git tag -l 'cli_v*' --sort=v:refname)
111+ PREV_TAG=$(git tag -l 'cli_v*' --sort=-v:refname | grep -v "^$CURRENT_TAG$" | head -n1)
121112
122113 if [[ -n "$PREV_TAG" ]]; then
123114 echo "value=https://github.com/${{ github.repository }}/compare/$PREV_TAG...$CURRENT_TAG" >> "$GITHUB_OUTPUT"
124115 else
125- echo "value=https://github.com/${{ github.repository }}/commits/${{ github.sha }} " >> "$GITHUB_OUTPUT"
116+ echo "value=https://github.com/${{ github.repository }}/commits/$CURRENT_TAG " >> "$GITHUB_OUTPUT"
126117 fi
127118 - uses : ncipollo/release-action@v1
128119 with :
129120 tag : cli_v${{ needs.compute-version.outputs.version }}
130- name : cli_v ${{ needs.compute-version.outputs.version }}
121+ name : char_v ${{ needs.compute-version.outputs.version }}
131122 body : ${{ steps.release-body.outputs.value }}
132123 prerelease : ${{ inputs.channel == 'nightly' }}
133124 artifacts : ${{ steps.artifacts.outputs.list }}
Original file line number Diff line number Diff line change 1+ on :
2+ pull_request :
3+ branches :
4+ - main
5+ paths :
6+ - " apps/cli/**"
7+ - " crates/**"
8+
9+ jobs :
10+ check :
11+ runs-on : macos-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : dtolnay/rust-toolchain@stable
15+ with :
16+ components : clippy
17+ - uses : Swatinem/rust-cache@v2
18+ - run : cargo check -p cli
19+ - run : cargo clippy -p cli -- -D warnings
You can’t perform that action at this time.
0 commit comments