-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathtest-build-resources-with-pandoc.yml
More file actions
59 lines (54 loc) · 1.67 KB
/
test-build-resources-with-pandoc.yml
File metadata and controls
59 lines (54 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: build-resources-with-pandoc
on:
pull_request:
branches: [master]
push:
branches:
- "*" # matches every branch that doesn't contain a '/'
- "*/*" # matches every branch containing a single '/'
- "**" # matches every branch
- "!master" # excludes master
tags: ["!**"]
permissions:
issues: write
pull-requests: write
# Allow one concurrent deployment
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-resources-with-pandoc:
if: github.repository == 'future-architect/coding-standards'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: docker://pandoc/latex:2.19
with:
entrypoint: "/bin/sh"
args: "./build-resources-with-pandoc.sh"
- name: Archive resources
uses: actions/upload-artifact@v6
id: artifact-upload-step
with:
name: pandoc_resources
path: ./public/resources/
retention-days: 1
- name: Archive Error resources
if: failure()
uses: actions/upload-artifact@v6
with:
name: error_resources
path: ./documents/
retention-days: 1
- uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { postCustomForArchiveResources } = await import('${{ github.workspace }}/scripts/pr-comment.mjs')
await postCustomForArchiveResources({
github,
context,
core,
url: '${{steps.artifact-upload-step.outputs.artifact-url}}'
})