Add option to control which files are formatted via regex and switch … #56
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: "0 11 * * 2" # Every Tuesday at 11:00 UTC | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout repository code | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Gather Docker metadata | |
- name: Gather metadata | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: PuneetMatharu/cmake-format | |
# Set up Docker Buildx | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
# Build and export Docker image | |
- name: Build and export Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
push: false # Don't push the image | |
load: true # Load the image into Docker daemon | |
tags: ${{ steps.meta.outputs.tags }} # Use metadata tags |