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

refactor gha to resuse across multiple actions #210

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

ChenyuLInx
Copy link

part of #dbt-core/10329

Description

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue

Copy link
Member

Choose a reason for hiding this comment

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

I think this should be a composite action instead of a workflow.

Copy link
Author

Choose a reason for hiding this comment

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

Sorry just got to this, is there a reason composite action is better for this?
Based on what I saw: Resusable workflow has more detailed logging, and can have multiple jobs(which we don't need here).
https://dev.to/n3wt0n/github-composite-actions-vs-reusable-workflows-updated-2023-bl8

pull-requests: write

jobs:
changelog_existence:
Copy link
Member

Choose a reason for hiding this comment

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

All references to changelog should be updated to be "path" or something similar since this is now more generalized.

Comment on lines +18 to +23
# changelog:
# uses: dbt-labs/actions/.github/workflows/changelog-check.yml@main
# with:
# changelog_comment: 'Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md#adding-changelog-entry).'
# path: '.changes/unreleased/**.yaml'
# secrets: inherit # this is only acceptable because we own the action we're calling
Copy link
Member

Choose a reason for hiding this comment

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

Once this is an action this will need to be updated.

Copy link
Author

Choose a reason for hiding this comment

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

I am not sure I follow here

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