mirror of
https://github.com/doocs/md.git
synced 2024-12-05 00:26:35 +08:00
chore: upgrade workflows (#453)
All checks were successful
Build and Deploy / build-and-deploy (push) Has been skipped
All checks were successful
Build and Deploy / build-and-deploy (push) Has been skipped
This commit is contained in:
parent
58b12d5fd1
commit
c52593ba50
4
.github/workflows/preview-build.yml
vendored
4
.github/workflows/preview-build.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
|||||||
npm run build:h5-netlify
|
npm run build:h5-netlify
|
||||||
|
|
||||||
- name: Upload dist artifact
|
- name: Upload dist artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist
|
name: dist
|
||||||
path: dist
|
path: dist
|
||||||
@ -37,7 +37,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload PR number
|
- name: Upload PR number
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pr
|
name: pr
|
||||||
path: ./pr-id.txt
|
path: ./pr-id.txt
|
||||||
|
12
.github/workflows/preview-deploy.yml
vendored
12
.github/workflows/preview-deploy.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
|||||||
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' && github.repository == 'doocs/md'
|
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' && github.repository == 'doocs/md'
|
||||||
steps:
|
steps:
|
||||||
- name: Download PR artifact
|
- name: Download PR artifact
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v6
|
||||||
with:
|
with:
|
||||||
workflow: ${{ github.event.workflow_run.workflow_id }}
|
workflow: ${{ github.event.workflow_run.workflow_id }}
|
||||||
name: pr
|
name: pr
|
||||||
@ -22,7 +22,7 @@ jobs:
|
|||||||
run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT"
|
run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Download dist artifact
|
- name: Download dist artifact
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v6
|
||||||
with:
|
with:
|
||||||
workflow: ${{ github.event.workflow_run.workflow_id }}
|
workflow: ${{ github.event.workflow_run.workflow_id }}
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
|
npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
|
||||||
|
|
||||||
- name: Upload status comment
|
- name: Upload status comment
|
||||||
uses: actions-cool/maintain-one-comment@v2
|
uses: actions-cool/maintain-one-comment@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
body: |
|
body: |
|
||||||
@ -49,7 +49,7 @@ jobs:
|
|||||||
|
|
||||||
- name: The job failed
|
- name: The job failed
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: actions-cool/maintain-one-comment@v2
|
uses: actions-cool/maintain-one-comment@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
body: |
|
body: |
|
||||||
@ -66,7 +66,7 @@ jobs:
|
|||||||
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' && github.repository == 'doocs/md'
|
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' && github.repository == 'doocs/md'
|
||||||
steps:
|
steps:
|
||||||
- name: Download PR artifact
|
- name: Download PR artifact
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v6
|
||||||
with:
|
with:
|
||||||
workflow: ${{ github.event.workflow_run.workflow_id }}
|
workflow: ${{ github.event.workflow_run.workflow_id }}
|
||||||
name: pr
|
name: pr
|
||||||
@ -76,7 +76,7 @@ jobs:
|
|||||||
run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT"
|
run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: The job failed
|
- name: The job failed
|
||||||
uses: actions-cool/maintain-one-comment@v2
|
uses: actions-cool/maintain-one-comment@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
body: |
|
body: |
|
||||||
|
Loading…
Reference in New Issue
Block a user