@@ -32,31 +32,22 @@ jobs:
32
32
owner: context.repo.owner,
33
33
repo: context.repo.repo,
34
34
run_id: context.payload.workflow_run.id,
35
- artifact_name: 'artifact-docs'
35
+ github_token: ${{ secrets.GITHUB_TOKEN }},
36
+ artifact_name: 'artifact-docs',
37
+ output_path: 'packages/docs'
36
38
});
37
- core.setOutput('has-docs', ' true') ;
39
+ return true;
38
40
} catch (error) {
39
- core.setOutput('has-docs', ' false') ;
41
+ return false;
40
42
}
41
43
42
44
- name : Checkout code
43
- if : steps.check-artifact.outputs.has-docs == 'true'
45
+ if : ${{ steps.check-artifact.outcome == 'success' }}
44
46
uses : actions/checkout@v4
45
47
46
- - name : Download docs artifact
47
- if : steps.check-artifact.outputs.has-docs == 'true'
48
- uses : actions/download-artifact@v4
49
- id : download-artifact
50
- with :
51
- name : artifact-docs
52
- github-token : ${{ secrets.GITHUB_TOKEN }}
53
- run-id : ${{ github.event.workflow_run.id }}
54
- # This will download both dist/ and server/
55
- path : packages/docs
56
-
57
48
# not the official version, so be careful when updating
58
49
- name : Deploy to Cloudflare Pages
59
- if : steps.check-artifact.outputs.has-docs == 'true'
50
+ if : ${{ steps.check-artifact.outcome == 'success' }}
60
51
uses : AdrianGonz97/refined-cf-pages-action@6c0d47ff7c97c48fa702b6d9f71f7e3a7c30c7d8
61
52
with :
62
53
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
0 commit comments