-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Improved projects workflow #37833
Improved projects workflow #37833
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 A new usage of AWS SDK for Go V1 was detected. Please prefer AWS SDK for Go V2 for all net-new services. If this is an enhancement or bug fix to an existing AWS SDK Go V1 based resource, this comment can be safely ignored. For additional information refer to the AWS SDK for Go Versions page in the contributor guide. |
env: | ||
ISSUE_URL: ${{ github.event.issue.html_url || github.event.pull_request.html_url }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea behind separating the ISSUE_URL
environment variable is that if we were to add additional jobs (for automating future projects), this URL would be common across them, while the environment variables defined at the job level are job-specific.
- name: Check if Author is Maintainer | ||
id: author | ||
if: github.event.action == 'opened' | ||
env: | ||
MAINTAINERS: ${{ secrets.MAINTAINERS }} | ||
AUTHOR_LOGIN: ${{ github.event.pull_request.user.login }} | ||
run: | | ||
echo "is_maintainer=$(echo $MAINTAINERS | base64 --decode | jq --arg u $AUTHOR_LOGIN '. | contains([$u])')" >> "$GITHUB_OUTPUT" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing "community check" with this bash
one-liner is the same amount of lines as using the reusable workflow (if you don't count the env
block that could technically be eliminated, to the detriment of readability, in my opinion).
Closing this after further research and consideration as to how I think we'll organize workflows going forward. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR improves our workflow for projects by:
issues.yml
andpull_request_target.yml
, reducing duplicated configRelations
Relates hashicorp/terraform-provider-awscc#1777
Output from Acceptance Testing
N/a, workflow