Compatibility Check #1
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: Compatibility Check Workflow | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch to run the workflow on' | |
required: true | |
default: 'main' | |
schedule: | |
# Schedule to run at 00:00 on the 1st of every month | |
- cron: '0 0 1 * *' | |
jobs: | |
compatibility-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.branch }} | |
- name: Install jq | |
run: sudo apt-get update && sudo apt-get install jq -y | |
- name: Run Compatibility Matrix Script | |
run: sudo bash compatibility_matrix.sh 3 | |
- name: Commit and Push if not on main branch | |
if: github.ref_name != 'main' | |
run: | | |
git config --global user.email "actions@github.com" | |
git config --global user.name "GitHub Actions" | |
git add . | |
git commit -m "Update compatibility matrix and badges" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |