Skip to content

Commit

Permalink
fix: Allow env expansion + fix wrong status code return
Browse files Browse the repository at this point in the history
  • Loading branch information
moraesjeremias committed Mar 5, 2024
1 parent c8c015d commit 27e822b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ jobs:
build_crawler_external:
runs-on: ubuntu-20.04
steps:
- name: Extract tag name
id: extract_tag
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Trigger repository dispatch for crawler build
shell: bash
run: |
Expand All @@ -101,8 +105,8 @@ jobs:
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.PAT_TOKEN }}" \
${{ secrets.CRAWLER_BUILD_URL}} \
-d '{"event_type": "lc_crawler_build", "client_payload": {"tag": "${GITHUB_REF#refs/tags/}"}}' \
| grep -q "200"
-d "{\"event_type\": \"lc_crawler_build\", \"client_payload\": {\"tag\": \"${{ env.TAG_NAME }}\"}}" \
| grep -q "204"
# can extend binary publish 'needs' to include more releases i.e. arm64 in future
binary_publish:
Expand Down

0 comments on commit 27e822b

Please sign in to comment.