Skip to content

Commit e774135

Browse files
authored
Merge pull request #344 from weaviate/title_sanitize
Title sanitize
2 parents 58e0a43 + ae29df2 commit e774135

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/main.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ jobs:
3434

3535
- name: Check for dry-run mode
3636
id: check-dry-run
37+
env:
38+
TITLE_TEXT: ${{ github.event.pull_request.title }}
3739
run: |
3840
# For PRs, check the actual HEAD commit (not the merge commit)
3941
# For push events, check the latest commit
4042
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
4143
# Get the actual branch HEAD commit message (not the merge commit)
4244
COMMIT_MSG=$(git log -1 --pretty=%B HEAD^2 2>/dev/null || git log -1 --pretty=%B)
43-
PR_TITLE="${{ github.event.pull_request.title }}"
45+
PR_TITLE="$TITLE_TEXT"
4446
else
4547
COMMIT_MSG=$(git log -1 --pretty=%B)
4648
PR_TITLE=""
@@ -93,9 +95,11 @@ jobs:
9395

9496
- name: Check formatting
9597
if: steps.changed-files.outputs.any_changed == 'true'
98+
env:
99+
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
96100
run: |
97101
dotnet tool restore
98-
dotnet csharpier check ${{ steps.changed-files.outputs.all_changed_files }}
102+
dotnet csharpier check $CHANGED_FILES
99103
100104
- name: Run analyzer unit tests
101105
run: |
@@ -232,8 +236,10 @@ jobs:
232236
contents: write
233237
steps:
234238
- name: Check for required secrets
239+
env:
240+
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
235241
run: |
236-
if [ -z "${{ secrets.NUGET_APIKEY }}" ]; then echo "Warning: NUGET_APIKEY is not set"; fi
242+
if [ -z "$NUGET_APIKEY" ]; then echo "Warning: NUGET_APIKEY is not set"; fi
237243
238244
- name: Checkout code
239245
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -260,7 +266,9 @@ jobs:
260266
dotnet pack -c Release -o out src/Weaviate.Client.VectorData/
261267
262268
- name: Push package to NuGet
263-
run: dotnet nuget push './out/*.nupkg' --skip-duplicate --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json
269+
env:
270+
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
271+
run: dotnet nuget push './out/*.nupkg' --skip-duplicate --api-key "$NUGET_APIKEY" --source https://api.nuget.org/v3/index.json
264272

265273
- name: GH Release
266274
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1

0 commit comments

Comments
 (0)