Skip to content

ruff workflow: Investigate composite action and/or yaml anchors #49

@SwooshyCueb

Description

@SwooshyCueb

We have some duplicated steps in our ruff workflow:

- name: Checkout Repository
uses: actions/checkout@v3
with:
# Get all history for the repository (branches, tags, etc).
# This is required in order for git_ruff to work correctly
fetch-depth: 0
path: src-repo
- name: Checkout Workflow Repository
uses: actions/checkout@v3
with:
repository: irods/irods_reusable_github_workflows
path: workflow-repo
- name: Install Prerequisites
run: |
sudo apt-get update -qq
sudo apt-get install -qq apt-transport-https ca-certificates
sudo apt-get install -qq python3
sudo pip3 install termcolor ruff --break-system-packages

- name: Checkout Repository
uses: actions/checkout@v3
with:
# Get all history for the repository (branches, tags, etc).
# This is required in order for git_ruff to work correctly
fetch-depth: 0
path: src-repo
- name: Checkout Workflow Repository
uses: actions/checkout@v3
with:
repository: irods/irods_reusable_github_workflows
path: workflow-repo
- name: Install Prerequisites
run: |
sudo apt-get update -qq
sudo apt-get install -qq apt-transport-https ca-certificates
sudo apt-get install -qq python3
sudo pip3 install termcolor ruff --break-system-packages

Let's investigate whether a composite action or yaml anchors would be suitable for deduplication.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions