This action submits an Evergreen patch.
You must get the 4-line authentication file from https://spruce.mongodb.com/preferences/cli, base64 encode it, set it as a secret in your repository's settings page in the GitHub UI, and pass it as EVERGREEN_AUTH. See example usage below.
To base64 encode your ~/.evergreen.yml, run base64 ~/.evergreen.yml. On
macOS, you can copy it directly to your clipboard by base64 ~/.evergreen.yml | pbcopy.
Required The project to patch against.
A regex of variants to patch against.
A regex of tasks to patch against.
This action is not published, so you must check it out with actions/checkout to use it.
on: [push]
jobs:
evergreen_patch_job:
runs-on: ubuntu-latest
name: evergreen patch
environment: test
steps:
- name: checkout
uses: actions/checkout@v3
- name: patch
uses: ./
id: patch
with:
project: evergreen-action
env:
EVERGREEN_AUTH: ${{ secrets.EVERGREEN_AUTH }}