-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (43 loc) · 1.43 KB
/
action.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
name: 'Mix Depdendency Submission'
description: 'Calculates dependencies for Mix and submits the list to the GitHub Dependency Submission API'
author: 'JOSHMARTIN GmbH'
inputs:
token:
description: "GitHub Personal Access Token (PAT). Defaults to PAT provided by Action runner"
required: false
default: ${{ github.token }}
project-name:
required: true
description: 'Application name of the project'
project-path:
required: true
description: 'Repo path to the rebar.lock file used to detect dependencies. Defaults to rebar.lock in the root of the repository.'
default: '${{ github.workspace }}'
runs:
using: 'composite'
steps:
- uses: erlef/setup-beam@v1
with:
elixir-version: 1.14.4
otp-version: 25.3
install-hex: true
version-type: strict
- uses: robinraju/release-downloader@v1.7
with:
repository: 'maennchen/mix-dependency-submission'
tag: "v1.0.0-beta.1"
fileName: "mix_dependency_submission"
out-file-path: "${{ runner.temp }}"
- run: |
mix \
escript.install \
"${{ runner.temp }}/mix_dependency_submission" \
--force
shell: 'bash'
working-directory: '${{ runner.temp }}'
- run: |
mix_dependency_submission \
--project-path="${{ inputs.project-path }}" \
--github-token="${{ inputs.token }}" \
${{ inputs.project-name }}
shell: 'bash'