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

107: CI to push automated gov.txt updates from CZDS API #117

Merged
merged 91 commits into from
Feb 26, 2024

Conversation

erinysong
Copy link
Contributor

@erinysong erinysong commented Feb 16, 2024

Resolves #107 - Creates GitHub Action workflow that daily pulls .gov zone file from CZDS API and pushes zone file contents to gov.txt if a diff is found. Script also allows for manually running workflow once it is merged to main.

Workflow currently triggered on push to es/107-zone-file-script for testing and demo purposes. This configuration will be removed once the branch is merged to main and it is confirmed to successfully run on main.

Testing Locally (Requires an ICANN account)

  1. In the command line, run ./scripts/download_zone_file.sh <ICANN_email> <ICANN_password>. If you need an account to test, message @erinysong and I can provide you testing credentials.
  2. The script should download and unzip the .gov zone file, resulting in an updated gov.txt

Testing on GitHub Actions

Until this PR is pushed to main, this workflow cannot be run manually and for testing purposes is run on any push or PR to this branch (this is admittedly not the most ideal way to test and will be deleted later to do more thorough testing with the manual workflow option after merging). Make any temporary push to the branch and check for GitHub Actions to run the Update gov.txt from CZDS API zone file action. The action should successfully run.

@erinysong erinysong force-pushed the es/107-zone-file-script branch from fc141a1 to 1279f65 Compare February 16, 2024 01:01
@erinysong erinysong force-pushed the es/107-zone-file-script branch from efc0cf7 to 9797e5f Compare February 20, 2024 22:49
@erinysong erinysong force-pushed the es/107-zone-file-script branch from b8c9777 to d3c925f Compare February 23, 2024 21:46
Copy link

@therealslimhsiehdy therealslimhsiehdy left a comment

Choose a reason for hiding this comment

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

Had a Zoom call with Erin and saw her demo it live to show that it worked + asked some clarification questions. Approving with the caveat that Erin will remove the lines that are for local testing! YAY ERIN!!!

@erinysong
Copy link
Contributor Author

Merging PR and will continue with testing on main branch to assess workflow health and functionality.

@erinysong erinysong merged commit 1638628 into main Feb 26, 2024
@erinysong erinysong deleted the es/107-zone-file-script branch February 26, 2024 22:45
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.

Update gov.txt daily from CZDS
4 participants