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

Fix Repo Name So Workflow Will Run #16

Merged
merged 3 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/build-and-review-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ jobs:
env:
ORG: 'im-open'
THIS_REPO: 'setup-deploy-keys'
INTERNAL_REPO_TO_CLONE: 'im-open/internal-repo-for-testing'
INTERNAL_REPO_TO_CLONE_DIR: 'internal-repo-for-testing'
INTERNAL_REPO_TO_CLONE: 'im-open/internal-repo-for-testing-purple-actions'
INTERNAL_REPO_TO_CLONE_DIR: 'internal-repo-for-testing-purple-actions'

# The private key which will be used to clone the internal & empty deploy-keys-testing repo.
# The repo does not contain anything sensitive, it is just marked as internal so the key can be tested here.
# This SSH key was generated as a readonly key (so no push abilities).
INTERNAL_REPO_TO_CLONE_KEY: ${{ secrets.SSH_KEY_TESTING_REPO }}
SSH_DEPLOY_KEY_INFO: |
[
{ "orgAndRepo": "im-open/internal-repo-for-testing", "envName" : "INTERNAL_REPO_TO_CLONE_KEY" }
{ "orgAndRepo": "im-open/internal-repo-for-testing-purple-actions", "envName" : "INTERNAL_REPO_TO_CLONE_KEY" }
]

steps:
Expand Down Expand Up @@ -200,9 +200,9 @@ jobs:

if [ $count -ne 3 ]
then
echo -e "\nExpected 3 insteadOf entries in .gitconfig but found $count"
echo -e "\nExpected 3 insteadOf entries in .gitconfig but found $count"
exit 1
else
else
echo -e "\nThere were 3 insteadOf entries in the .gitconfig as expected."
fi

Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
id: unparseable
continue-on-error: true # This is needed because we expect the step to fail. We need it to "pass" in order for the test job to succeed.
with:
deploy-key-info: '[ orgAndRepo=im-open/internal-repo-for-testing, envName=INTERNAL_REPO_TO_CLONE_KEY ]'
deploy-key-info: '[ orgAndRepo=im-open/internal-repo-for-testing-purple-actions, envName=INTERNAL_REPO_TO_CLONE_KEY ]'

- name: Then the outcome should be failure
if: always()
Expand Down Expand Up @@ -310,7 +310,7 @@ jobs:
with:
deploy-key-info: |
[
{ "orgAndRepo": "im-open/internal-repo-for-testing", "envName" : "" }
{ "orgAndRepo": "im-open/internal-repo-for-testing-purple-actions", "envName" : "" }
]

- name: Then the outcome should be failure
Expand All @@ -335,7 +335,7 @@ jobs:
with:
deploy-key-info: |
[
{ "orgAndRepo": "im-open/internal-repo-for-testing", "envName" : "UNPOPULATED_ENV_VARIABLE" }
{ "orgAndRepo": "im-open/internal-repo-for-testing-purple-actions", "envName" : "UNPOPULATED_ENV_VARIABLE" }
]

- name: Then the outcome should be failure
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
/.vscode/launch.json
/.vscode/launch.json
.DS_Store
Loading