-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (29 loc) · 1.06 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
---
name: Perform static analyses
description: Run static analysis checks on code for pull requests
inputs:
docker-tag:
description: Docker image tag to use for running checks
default: latest
required: false
runs:
using: "composite"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
# https://github.com/orgs/community/discussions/9049#discussioncomment-4239509
# Due to limitations on composite Actions, we can't do something like:
# - uses: docker://ghcr.io/uclahs-cds/cicd-base:${{ inputs.docker-tag }}
# Instead, we need to write another action.yml on-the-fly and then use that.
# There absolutely should not be an 'action.yml' file underneath the .git
# folder of the calling repository already, so we can use that.
- name: Configure workflow
env:
DOCKER_IMAGE_TAG: ${{ inputs.docker-tag }}
shell: bash
run: python '${{ github.action_path }}/create_template.py'
- name: Run checks
uses: ./.git