This repository contains a set of reusable workflows for GitHub Actions. These workflows are designed to automate various tasks such as deployments, PR checks, Azure object updates, and more across multiple repositories.
To use these workflows, reference them in your GitHub Actions workflow file using the uses:
directive. This directive should include the path to the reusable workflow in this repository, Andrews-McMeel-Universal/reusable_workflows/.github/workflows/
, followed by the specific workflow name.
This workflow checks the validity of the CODEOWNERS file in your repository.
codeowners-validation:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Codeowners File Validation
uses: Andrews-McMeel-Universal/reusable_workflows/.github/workflows/codeowners-validation.yaml@2
This workflow checks PRs for Jira ticket references and performs other compliance checks.
jira-lint:
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'amutechtest' && github.ref != 'refs/heads/development' && github.ref != 'refs/heads/main' }}
name: Jira PR Linter
uses: Andrews-McMeel-Universal/reusable_workflows/.github/workflows/jira-lint.yaml@2
with:
fail-on-error: true
skip-comments: false
secrets:
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
You can reference workflows by either a tag or a branch from this repository.
- To reference a specific release (for a static copy of the workflows at that point):
Andrews-McMeel-Universal/reusable_workflows/.github/workflows/aks-deploy.yaml@2
- To reference a specific branch:
Andrews-McMeel-Universal/reusable_workflows/.github/workflows/aks-deploy.yaml@DEVOPS-fix-aks-deploy-bug
After a pull request is merged into main, you can create a new release to use it as a reusable workflow. Follow the instructions in this guide to create a new release: Creating a Release
After creating a new release, you can use the Update Major Release Workflow to automatically update the major release tag for the repository.
- Navigate to the Update Major Release workflow.
- Click "Run workflow" on the right-hand side of the page.
- Specify the tag to create a major release for and what the major release will be.
- Click "Run workflow"