-
Notifications
You must be signed in to change notification settings - Fork 34
42 lines (39 loc) · 1.27 KB
/
check-dist.yml
File metadata and controls
42 lines (39 loc) · 1.27 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
# This workflow ensures that generated files are up-to-date with their sources.
# It checks three types of generated files:
# 1. dist/index.js - The transpiled JavaScript action code
# 2. consumer-workflows/ - Template workflows generated from examples/
# 3. .github/workflows/ - Reusable workflows generated from examples/
#
# These files are generated by running `npm run build`.
# If this workflow is run from a feature branch, it will act as an additional CI
# check and fail if the checked-in generated files do not match what is
# expected from the build.
name: Check Transpiled JavaScript and Workflows
on:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
push:
branches:
- main
paths-ignore:
- '**.md'
permissions:
contents: read
jobs:
check--action-dist:
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main
with:
node-version: '24.x'
check--consumer-workflows-dist:
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main
with:
node-version: '24.x'
dist-path: './consumer-workflows'
check--reusable-workflows-dist:
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main
with:
node-version: '24.x'
dist-path: './.github/workflows'