Compare commits
2 Commits
v0.7.0-alp
...
v0.7.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
7643662fcc
|
|||
|
5c56d77a23
|
@@ -29,6 +29,7 @@ jobs:
|
||||
corepack prepare yarn@stable --activate
|
||||
|
||||
- name: Cache node_modules
|
||||
id: cache-node-modules
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: node_modules
|
||||
@@ -37,6 +38,7 @@ jobs:
|
||||
${{ runner.os }}-node-modules-
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||
run: yarn install --immutable
|
||||
|
||||
- name: Create env file
|
||||
@@ -54,14 +56,9 @@ jobs:
|
||||
|
||||
- name: Trigger Ansible Deploy Playbook
|
||||
if: steps.build.outputs.VERSION != ''
|
||||
uses: https://github.com/distributhor/workflow-webhook@v3
|
||||
with:
|
||||
webhook_url: ${{ vars.WEBHOOK_URL }}
|
||||
webhook_auth_type: bearer
|
||||
webhook_auth: ${{ secrets.WEBHOOK_SECRET }}
|
||||
verbose: true
|
||||
data: >
|
||||
{
|
||||
"artifact_url":
|
||||
"${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz"
|
||||
}
|
||||
run: |
|
||||
curl --fail-with-body -sS \
|
||||
-H "Authorization: Bearer ${{ secrets.WEBHOOK_SECRET }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"artifact_url":"${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz"}' \
|
||||
"${{ vars.WEBHOOK_URL }}"
|
||||
|
||||
Reference in New Issue
Block a user