Skip to content

Commit 1a55b66

Browse files
committed
ci(autoSync): add upload metedata after release
1 parent 01fb96c commit 1a55b66

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
fetch-depth: 0
1717

1818
- name: Release
19+
id: semantic
1920
uses: cycjimmy/semantic-release-action@v4
2021
with:
2122
semantic_version: 23.0.2
@@ -24,4 +25,12 @@ jobs:
2425
@semantic-release/[email protected]
2526
2627
env:
27-
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
28+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
29+
30+
- name: Trigger Metadata Upload
31+
if: steps.semantic.outputs.new_release_published == 'true'
32+
run: |
33+
url="${{ secrets.FC_UPLOAD_META_ENDPOINT }}/?from=git&syncModuleMeta=true&moduleName=${{ github.event.repository.name }}&moduleVersion=${{ steps.semantic.outputs.new_release_version }}"
34+
echo "Uploading metadata to $url"
35+
curl -H "X-Fc-Invocation-Type:Async" \
36+
-s "$url"

0 commit comments

Comments
 (0)