Skip to content

Publish a GHA that runs bluehawk copy #141

@nlarew

Description

@nlarew

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 }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions