Skip to content

Commit 6d76e44

Browse files
committed
test infra repo dispatch
1 parent 4dd2bc0 commit 6d76e44

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -70,27 +70,17 @@ jobs:
7070
needs: [build]
7171
runs-on: ubuntu-20.04
7272
steps:
73-
- uses: actions/download-artifact@v4
74-
with:
75-
path: binaries
76-
pattern: avail-light-*
77-
merge-multiple: true
78-
79-
- run: ls -R binaries
73+
- uses: actions/download-artifact@v4
74+
with:
75+
path: binaries
76+
pattern: avail-light-*
77+
merge-multiple: true
8078

81-
- name: Prepare
82-
id: prepare
83-
run: |
84-
TAG=${GITHUB_REF#refs/tags/}
85-
echo ::set-output name=tag_name::${TAG}
79+
- run: ls -R binaries
8680

8781
trigger_deploy_workflow:
8882
runs-on: ubuntu-latest
8983
steps:
90-
- name: Extract tag name
91-
id: extract_tag
92-
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
93-
9484
- name: Trigger repository_dispatch
9585
shell: bash
9686
run: |
@@ -101,20 +91,14 @@ jobs:
10191
https://api.github.com/repos/availproject/avail-light-infra/dispatches \
10292
-d '{"event_type": "binary_release", "client_payload": {"avail_light_version": "${{ github.ref_name }}"}}'
10393
104-
trigger_crawler_build:
105-
runs-on: ubuntu-20.04
106-
steps:
107-
- name: Extract tag name
108-
id: extract_tag
109-
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
110-
11194
- name: Trigger repository dispatch for crawler build
95+
if: false
11296
shell: bash
11397
run: |
11498
curl -s -o /dev/null -w "%{http_code}" \
11599
-X POST \
116100
-H "Accept: application/vnd.github.v3+json" \
117101
-H "Authorization: token ${{ secrets.PAT_TOKEN }}" \
118102
${{ secrets.CRAWLER_BUILD_URL}} \
119-
-d "{\"event_type\": \"lc_crawler_build\", \"client_payload\": {\"tag\": \"${{ env.TAG_NAME }}\"}}" \
103+
-d "{\"event_type\": \"lc_crawler_build\", \"client_payload\": {\"tag\": \"${{ github.ref_name }}\"}}" \
120104
| grep -q "204"

0 commit comments

Comments
 (0)