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

Update pr.yml to publish collections to production upon PR merge and handle staging collections #184

Open
3 tasks
botanical opened this issue Nov 19, 2024 · 1 comment

Comments

@botanical
Copy link
Member

botanical commented Nov 19, 2024

Context

In pr.yml, we currently have a no-op to publish collections to production. Update this step so that the collection is published to production when the PR is merged. Also, update so that the action is run on the staging directory

publish-to-prod-on-pr-merge:
if: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Publish to production on PR merge
run: echo "NO-OP. This step runs when a PR is merged."

Acceptance Criteria

  • action is updated to be triggered on the staging directory
  • no-op step is removed and replaced with a step that publishes the collection to production when the PR is merged
  • relevant testing is done to ensure step works correctly
@smohiudd
Copy link
Contributor

blocked by NASA-IMPACT/veda-data-airflow#256

@botanical botanical changed the title Update pr.yml to publish collections to production upon PR merge Update pr.yml to publish collections to production upon PR merge and handle staging collections Nov 20, 2024
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

No branches or pull requests

2 participants