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

feat: update pr.yml to use github actor #223

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

Conversation

botanical
Copy link
Member

@botanical botanical commented Jan 13, 2025

Relevant issue:

#225

Changes

Updated pr.yml workflow to use the GitHub App VEDA-Github-Actor. You'll notice that the PR it opens will be opened by the GitHub Actor bot and the title of the PR will include the username of the person opening the PR from veda-data NASA-IMPACT/veda-config#537

Add dataset(s) - hls-swir-falsecolor-composite-TEST-GH-ACTOR [Automated PR by botanical] #537

Misc

These are the primary documents I referred to in order to implement these changes:

@botanical botanical marked this pull request as ready for review January 13, 2025 23:31
@botanical botanical requested a review from smohiudd as a code owner January 13, 2025 23:31
Copy link

github-actions bot commented Jan 13, 2025

Workflow Status

Starting workflow... View action run

Collection Publication Status

  • hls-swir-falsecolor-composite-TEST-GH-ACTOR: Successfully published ✅

A PR has been created with the dataset configuration: 🗺️ PR link

@botanical
Copy link
Member Author

I learned about this action that exists after I already implemented my own version of getting the JWT + installation token to authenticate the PR creation https://github.com/actions/create-github-app-token. Does anyone have strong opinions on whether or not we should use the action to create the github app token that GH created?

run: |
echo "${{ env.installation_token }}" | gh auth login --with-token
git config --global user.name "VEDA-Github-Actor[bot]]"
git config --global user.email 192275278+VEDA-Github-Actor[bot]@users.noreply.github.com
Copy link
Member Author

Choose a reason for hiding this comment

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

https://api.github.com/users/VEDA-Github-Actor[bot] this is where I got info on the email (I used the ID). I'm not sure if this is something we want to store in an env var?

@@ -293,7 +354,7 @@ jobs:
body="### Add dataset(s) - $first_collection_id [Automated PR by ${{ github.actor }}]\n\n$collection_bullet_points"
Copy link
Member Author

Choose a reason for hiding this comment

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

I left the github.actor here. I think it's nice to see the user that opened the original veda-data PR with the dataset-config changes. Thoughts welcome, though! I'm definitely okay with removing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant