Bluehawk
Bluehawk copied to clipboard
Publish a GHA that runs `bluehawk copy`
The goal here is to automate Bluehawk "artifacts" via CI/CD in a reusable way.
Currently the MongoDB docs team uses a locally-defined push-to-artifact-repo action that calls bluehawk-plugin-git.
Ideally the bluehawk copy
GHA wouldn't be so tightly coupled to Git output. We should enable pluggable output targets (e.g. GitHub & S3) and/or ensure that there's clean way to pipe a copied file/directory within GHA to another step/job that handles it separately.
name: Publish GraphQL Web Template Artifact Repo
on:
pull_request:
paths:
- "other/web-js/**"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mongodb-university/bluehawk/github-actions/copy@main
with:
email: [email protected]
name: Arty Fact
states: prod-graphql
source: other/web-js/generated/prod-graphql
toRepo: https://${{ secrets.GRAPHQL_WEB_TEMPLATE_ARTIFACT_REPO_ACCESS_TOKEN }}@github.com/mongodb-university/realm-template-web-graphql.git
commitMessage: Apply ${{ github.sha }} from ${{ github.repository }}:${{ github.ref_name }}