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

Created GHA to update code of conduct in corresponding repos when REA… #3

Merged

Conversation

bootcamp-brian
Copy link
Member

@bootcamp-brian bootcamp-brian commented May 3, 2023

Part of the fix for #4249

What changes did you make and why did you make them ?

  • Created .github/workflows/update-codeofconduct.yml workflow file that triggers whenever the README.md file in the root of the hackforla/codeofconduct repo is updated.
  • Created github-actions/update-codeofconduct/update-codeofconduct.js that runs when the workflow is triggered. This file uses the GitHub REST API to copy the contents of the hackforla/codeofconduct/README.md file and then paste that into a hackforla/website/_includes/code-of-condcut-page/CODEOFCONDUCT.md file in the hackforla/website repo.
  • These changes were made in order to automate the updating of the code of conduct in the hackforla/website repo by tying it to the updating of the hackforla/codeofconduct/README.md file in this repo. This way the code of conduct only has to be edited in a single place.
  • Created a .gitignore file so that node_modules don't get pushed

@jdingeman jdingeman self-requested a review May 4, 2023 23:05
Copy link
Member

@jdingeman jdingeman left a comment

Choose a reason for hiding this comment

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

Tested out the changes and the file works in reverting it back to the correct state.

@jdingeman jdingeman merged commit 012ff04 into hackforla:master May 4, 2023
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