Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production dcapi types Github action workflow #121

Merged
merged 1 commit into from
Mar 14, 2023
Merged

Conversation

kdid
Copy link
Contributor

@kdid kdid commented Mar 14, 2023

  • Production workflow added
  • Readme updated

Overview of workflow

Typescript types for the schemas (Works, Collections, FileSets) are automatically published to the nulib/dcapi-types repo on deploys.

  • If a deploy to the deploy/staging branch contains changes to the docs/docs/spec/data-types.yaml file, new types are generated and a commit is made to the staging branch of nulib/dcapi. This is intended to be for local testing by NUL devs against the private staging API.
  • If a deploy to production (main branch) contains changes to the docs/docs/spec/data-types.yaml file, new types are generated and a PR is opened into the main branch of nulib/dcapi-types. Also, an issue is created in nulib/repodev_planning_and_docs to review the PR and publish the types package (manually).

@kdid kdid requested review from mbklein and bmquinn March 14, 2023 18:47
Copy link
Contributor

@mbklein mbklein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great by my reading of it, except for the one type noted.

shell: bash
- working-directory: "${{ env.TMP_DSTDIR }}"
run: |
git checkout -b dcapi-${{ steps.vars.outputs.short_sha }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the output name defined on line 39 was short-sha, not short_sha

Suggested change
git checkout -b dcapi-${{ steps.vars.outputs.short_sha }}
git checkout -b dcapi-${{ steps.vars.outputs.short-sha }}

@kdid kdid temporarily deployed to test March 14, 2023 20:15 — with GitHub Actions Inactive
@kdid kdid merged commit 01b27f4 into deploy/staging Mar 14, 2023
@kdid kdid deleted the 3527-prod branch March 14, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants