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

Implement automatic package updates #4

Merged
merged 8 commits into from
Jun 29, 2024
Merged

Implement automatic package updates #4

merged 8 commits into from
Jun 29, 2024

Conversation

scaramallion
Copy link
Member

@scaramallion scaramallion commented Jun 28, 2024

  • Figure out how to automate opening a PR
  • Can the automatic PR also be automatically merged?
  • Figure out how to trigger the PR workflow on pydicom merge workflow completion
  • Set package version automatically
  • (Later) Trigger deploy workflow on pydicom deploy workflow success

@scaramallion
Copy link
Member Author

scaramallion commented Jun 28, 2024

OK, some notes:

  1. Enabled organisation level fine-grained personal access tokens.
  2. Create a new personal access token: My Profile -> Settings -> Developer Settings -> Personal Access Tokens -> Fine-grained tokens -> Generate new token
  3. Name it something obvious
  4. Expiration: something useful, 90 days for now but will need to be updated as needed
  5. Resource owner: change to the pydicom organisation
  6. Only selected repositories: pydicom/types-pydicom
  7. Repository permissions: Actions (RW), Contents (RW), Metadata (R), Pull Requests (RW)
  8. Generate token, copy the value
  9. In pydicom/types-pydicom, go to settings and add a new secret, the value should be the token value from the previous step
  10. In the receiver.yml workflow, the secrets token name should match the one in the types-pydicom settings
  11. In pydicom, add/update the secret used by the trigger workflow using the same token value.

@scaramallion scaramallion changed the title Test auto updates Implement automatic package updates Jun 28, 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

Successfully merging this pull request may close these issues.

1 participant