This project warehouses the GitHub Workflows used by Edge as well as instructions to add the workflows to a repo.
Run this command in your project directory:
curl -s https://raw.githubusercontent.com/EdgeApp/edge-workflows/main/scripts/install | bashThis will add a .github/workflows/ directory which should be tracked in your SCM. This command can also be used to update the workflow.
To upgrade a repository's .github/workflow with the latest edition of the workflows, simply run the install command and commit the changes.
Workflow upgrade commits don't require a pull request or review and can be aded on the main (master) branch directly.
Edge repositories can automatically synchronize all current workflows in edge-workflows by adding it to the list of repositories in workflow-sync.yml. This file uses the File Sync action to synchronize all workflows maintained in the edge-workflow repository.
This repository's WORKFLOW_SYNC_TOKEN secret must be set to an appropriate personal access token with the "workflow" permission for all the listed repositories.
Here's the list of all current Edge GitHub workflows along with a short summary.
Runs when creating or updating pull requests. It currently contains the block-wip-pr-action which prevents PRs which have fixup/squash commits or merge commits from being merged into the main branch.
Runs when creating a pull request comment containing the textual command /rebase or /autosquash. It uses the cirrus-actions/rebase action to rebase the PR onto the base branch if possible (no conflicts). When using /autosquash or /rebase-autosquash, it will rebase using the --autosquash flag.