-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
45 lines (45 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
44
45
name: PHP Extension Updater
description: Monitors a given list of PHP extensions and opens a PR if newer versions exist.
author: pantheon-systems
branding:
icon: file-plus
color: yellow
inputs:
dependencies-yml:
description: The path to the list of dependencies in a dependencies.yml file.
required: true
type: string
default: ''
output-file:
description: The path to a separate, plaintext file to update the changes to (in addition to dependencies.yml).
required: false
type: string
default: ''
default-branch:
description: The name of the default branch on the repository that is being altered.
required: false
type: string
default: 'main'
dry-run:
description: Run the action without creating a PR.
required: false
type: boolean
default: false
runs:
using: composite
steps:
- name: Install yq
uses: mikefarah/yq@v4
- name: Check Dependencies
shell: bash
run: |
${{ github.action_path }}/bin/validate-dependencies-yml-schema.sh ${{ inputs.dependencies-yml }}
${{ github.action_path }}/bin/dependency-check-pr.sh
env:
DEPENDENCIES_YML: ${{ inputs.dependencies-yml }}
OUTPUT_FILE: ${{ inputs.output-file }}
DRY_RUN: ${{ inputs.dry-run }}
DEFAULT_BRANCH: ${{ inputs.default-branch }}
GH_TOKEN: ${{ github.token }}
THIS_REPO: ${{ github.repository }}
ACTIVE_BRANCH: ${{ github.ref }}