-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #303 from usagov/stage
Sprint 67 release to MAIN
- Loading branch information
Showing
18 changed files
with
376 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,53 +2,54 @@ version: 2.1 | |
orbs: | ||
gh: circleci/[email protected] | ||
jobs: | ||
update-nvrf: | ||
docker: | ||
- image: cimg/base:stable | ||
environment: | ||
URL: https://www.eac.gov/sites/default/files/eac_assets/1/6/Federal_Voter_Registration_ENG.pdf | ||
NVRF_FILE_NAME: Federal_Voter_Registration_ENG.pdf | ||
NEW_BRANCH_NAME: upload-nvrf-pdf | ||
steps: | ||
#Install gh | ||
- gh/install | ||
- run: | ||
name: Git Clone and Config | ||
command: | | ||
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git clone -b "update-nvrf-pdf" "$CIRCLE_REPOSITORY_URL" | ||
cd vote-gov-nvrf-app | ||
git config user.email "circleci@df52e93b2563.(none)" | ||
git config user.name "Pipeline Commit" | ||
- run: | ||
name: Fetch NVRF from eac.gov | ||
command: | | ||
curl -o Federal_Voter_Registration_ENG.pdf $URL | ||
#Save pdf as an artifact | ||
- store_artifacts: | ||
path: Federal_Voter_Registration_ENG.pdf | ||
destination: /pdf-files | ||
# Create a variable to store the PDF artifact | ||
- run: | ||
name: Replace current NVRF | ||
command: | | ||
cd vote-gov-nvrf-app | ||
artifacts=$(curl -X GET "https://circleci.com/api/v2/project/github/usagov/vote-gov-nvrf-app/$CIRCLE_BUILD_NUM/artifacts" \ | ||
-H "Accept: application/json" \ | ||
-u "$NVRF_PDF_WRITE:") | ||
echo "read -r -d '' STORED_ARTIFACTS \<< 'EOF_ARTIFACTS'" >> $BASH_ENV | ||
echo "$artifacts" >> $BASH_ENV | ||
echo "EOF_ARTIFACTS" >> $BASH_ENV | ||
cd public/files | ||
rm $NVRF_FILE_NAME | ||
echo $STORED_ARTIFACTS > $NVRF_FILE_NAME | ||
- run: | ||
name: Create Pull Request | ||
shell: /bin/bash | ||
command: | | ||
cd vote-gov-nvrf-app | ||
echo $NVRF_PDF_WRITE | tee /tmp/key.txt | ||
gh auth login --with-token < /tmp/key.txt | ||
gh pr create --title "Update NVRF PDF" --body "Upload the new NVRF PDF from eac.gov. This is an automated job from CircleCI" || true | ||
# turning off job until review of pdf can be done | ||
# update-nvrf: | ||
# docker: | ||
# - image: cimg/base:stable | ||
# environment: | ||
# URL: https://www.eac.gov/sites/default/files/eac_assets/1/6/Federal_Voter_Registration_ENG.pdf | ||
# NVRF_FILE_NAME: Federal_Voter_Registration_ENG.pdf | ||
# NEW_BRANCH_NAME: upload-nvrf-pdf | ||
# steps: | ||
# #Install gh | ||
# - gh/install | ||
# - run: | ||
# name: Git Clone and Config | ||
# command: | | ||
# GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git clone -b "update-nvrf-pdf" "$CIRCLE_REPOSITORY_URL" | ||
# cd vote-gov-nvrf-app | ||
# git config user.email "circleci@df52e93b2563.(none)" | ||
# git config user.name "Pipeline Commit" | ||
# - run: | ||
# name: Fetch NVRF from eac.gov | ||
# command: | | ||
# curl -o Federal_Voter_Registration_ENG.pdf $URL | ||
# #Save pdf as an artifact | ||
# - store_artifacts: | ||
# path: Federal_Voter_Registration_ENG.pdf | ||
# destination: /pdf-files | ||
# # Create a variable to store the PDF artifact | ||
# - run: | ||
# name: Replace current NVRF | ||
# command: | | ||
# cd vote-gov-nvrf-app | ||
# artifacts=$(curl -X GET "https://circleci.com/api/v2/project/github/usagov/vote-gov-nvrf-app/$CIRCLE_BUILD_NUM/artifacts" \ | ||
# -H "Accept: application/json" \ | ||
# -u "$NVRF_PDF_WRITE:") | ||
# echo "read -r -d '' STORED_ARTIFACTS \<< 'EOF_ARTIFACTS'" >> $BASH_ENV | ||
# echo "$artifacts" >> $BASH_ENV | ||
# echo "EOF_ARTIFACTS" >> $BASH_ENV | ||
# cd public/files | ||
# rm $NVRF_FILE_NAME | ||
# echo $STORED_ARTIFACTS > $NVRF_FILE_NAME | ||
# - run: | ||
# name: Create Pull Request | ||
# shell: /bin/bash | ||
# command: | | ||
# cd vote-gov-nvrf-app | ||
# echo $NVRF_PDF_WRITE | tee /tmp/key.txt | ||
# gh auth login --with-token < /tmp/key.txt | ||
# gh pr create --title "Update NVRF PDF" --body "Upload the new NVRF PDF from eac.gov. This is an automated job from CircleCI" || true | ||
cypress-testing: | ||
docker: | ||
- image: cypress/included:cypress-13.3.0-node-20.6.1-chrome-116.0.5845.187-1-ff-117.0-edge-116.0.1938.76-1 | ||
|
@@ -70,13 +71,14 @@ workflows: | |
main-workflow: | ||
jobs: | ||
- cypress-testing | ||
update-nvrf-workflow: | ||
jobs: | ||
- update-nvrf | ||
triggers: | ||
- schedule: | ||
cron: '0 0 * * 5' | ||
filters: | ||
branches: | ||
only: | ||
- stage | ||
# turning off job until review of pdf can be done | ||
# update-nvrf-workflow: | ||
# jobs: | ||
# - update-nvrf | ||
# triggers: | ||
# - schedule: | ||
# cron: '0 0 * * 5' | ||
# filters: | ||
# branches: | ||
# only: | ||
# - stage |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,18 @@ | ||
{ | ||
"notRequired": "Not required for your state", | ||
"newWindow": "Go to your state's PDF form in a new tab", | ||
"newTab": "Print your mail-in form in a new tab", | ||
"nameChange": "I have legally changed my name since I last registered in this state.", | ||
"dob": "Date of Birth", | ||
"month": "Month", | ||
"day": "Day", | ||
"year": "Year", | ||
"stateName": "Go to the PDF form on @state_name's website", | ||
"checkReg": "Check your registration", | ||
"checkRegWY": "Find your local office to check your registration", | ||
"learnMore": "Learn more about your voting options", | ||
"backBtn": "Back to Vote.gov", | ||
"backIcon": "back arrow icon", | ||
"forwardIcon": "forward arrow icon", | ||
"stateOnlineName": "Register on @state_name's website", | ||
"confirm": "Confirm and continue", | ||
"selectState": "Select your state or territory", | ||
"selectStateAriaLabel": "State selection dropdown menu", | ||
"lastUpdated": "@state_name information last updated ", | ||
"privacyPolicy": "Privacy policy", | ||
"extlink": "External link opens new window", | ||
"emailLabel": "Voter Contact", | ||
"emailHint": "For example: [email protected]", | ||
"select": "- Select -", | ||
"download": "Download your mail-in form", | ||
"downloadText": "If form does not open in a new tab you can download using the option below.", | ||
"mailDeadlineLabel": "Mail-in registration deadline:", | ||
"inPersonBtn": "Learn more on @state_name's election website", | ||
"inPersonBtnWY": "Find in-person registration locations", | ||
"idSelectionAriaLabel": "Choose identification type" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,18 @@ | ||
{ | ||
"notRequired": "Not required for your state", | ||
"newWindow": "Go to your state's PDF form in a new tab", | ||
"newTab": "Print your mail-in form in a new tab", | ||
"nameChange": "I have legally changed my name since I last registered in this state.", | ||
"dob": "Date of Birth", | ||
"month": "Month", | ||
"day": "Day", | ||
"year": "Year", | ||
"stateName": "Go to the PDF form on @state_name's website", | ||
"checkReg": "Check your registration", | ||
"checkRegWY": "Find your local office to check your registration", | ||
"learnMore": "Learn more about your voting options", | ||
"backBtn": "Back to Vote.gov", | ||
"backIcon": "back arrow icon", | ||
"forwardIcon": "forward arrow icon", | ||
"stateOnlineName": "Register on @state_name's website", | ||
"confirm": "Confirm and continue", | ||
"selectState": "Select your state or territory", | ||
"selectStateAriaLabel": "State selection dropdown menu", | ||
"lastUpdated": "@state_name information last updated ", | ||
"privacyPolicy": "Privacy policy", | ||
"extlink": "External link opens new window", | ||
"emailLabel": "Voter Contact", | ||
"emailHint": "For example: [email protected]", | ||
"select": "- Select -", | ||
"download": "Download your mail-in form", | ||
"downloadText": "If form does not open in a new tab you can download using the option below.", | ||
"mailDeadlineLabel": "Mail-in registration deadline:", | ||
"inPersonBtn": "Learn more on @state_name's election website", | ||
"inPersonBtnWY": "Find in-person registration locations", | ||
"idSelectionAriaLabel": "Choose identification type" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[{"uuid":"0ac52b5d-4381-4b4e-830e-38319f3a3757","lang":"en","heading":"I am already registered in @state_name and need to change my information.","body":"\u003Cp\u003EReport a change to registration information, such as name, address, or political party.\u003C\/p\u003E","button_label":"Change registration information","image_url":""},{"uuid":"3abd804c-2787-44f9-a06b-ad6d63ca797f","lang":"en","heading":"I am registering in @state_name for the first time.","body":"\u003Cp\u003ERegister for the first time in this state. We recommend having your driver\u2019s license or non-driver identification number available.\u003C\/p\u003E","button_label":"Begin new registration","image_url":""}] | ||
[{"uuid":"0ac52b5d-4381-4b4e-830e-38319f3a3757","lang":"en","heading":"I am already registered in @state_name and need to change my information.","body":"\u003Cp\u003EReport a change to registration information, such as name, address, or political party.\u003C\/p\u003E","button_label":"Change registration information","image_url":""},{"uuid":"5922e06c-ac2f-475d-ab10-abfdeb65de43","lang":"en","heading":"","body":"\u003Cp\u003EOMB Control No. 3265-0015\u003C\/p\u003E\u003Cp\u003E\u003Ca href=\u0022\/form-filler-privacy-policy\u0022\u003EPrivacy policy\u003C\/a\u003E\u003C\/p\u003E","button_label":"","image_url":""},{"uuid":"3abd804c-2787-44f9-a06b-ad6d63ca797f","lang":"en","heading":"I am registering in @state_name for the first time.","body":"\u003Cp\u003ERegister for the first time in this state. We recommend having your driver\u2019s license or non-driver identification number available.\u003C\/p\u003E","button_label":"Begin new registration","image_url":""}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.