forked from LedgerHQ/ledger-app-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.7 KB
/
_check_makefile.yml
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
name: Check Makefile
on:
workflow_call:
inputs:
ledger-app-workflows_ref:
description: 'The current reference in use for the ledger-app-workflow repository'
required: true
type: string
app-repository:
description: 'The URL of the app repository to check. Defaults to the workflow caller repository URL'
required: false
default: ${{ github.repository }}
type: string
repo-name:
description: 'The name of the app repository to check. Defaults to the workflow caller repository name'
required: false
default: ${{ github.event.repository.name }}
type: string
download_manifest_artifact_name:
description: 'The name of the artifact containing the built manifest'
required: true
type: string
jobs:
check_makefile:
name: Check Makefile
runs-on: ubuntu-latest
steps:
- name: Clone workflows repository
uses: actions/checkout@v4
with:
repository: LedgerHQ/ledger-app-workflows
path: ./ledger-app-workflows
ref: ${{ inputs.ledger-app-workflows_ref }}
- name: Clone app repository
uses: actions/checkout@v4
with:
repository: ${{ inputs.app-repository }}
path: app-repository
submodules: recursive
- name: Download manifest
uses: actions/download-artifact@v4
with:
name: ${{ inputs.download_manifest_artifact_name }}
path: ${{ inputs.download_manifest_artifact_name }}
- name: Run script
run: bash ./ledger-app-workflows/scripts/check_makefile.sh app-repository ${{ inputs.repo-name }} ${{ inputs.download_manifest_artifact_name }}