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 pathing in updating cookie repo #128

Merged
merged 3 commits into from
Jun 22, 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
6 changes: 3 additions & 3 deletions .github/actions/push-to-cookie/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ inputs:
source-directory:
description: Source directory
required: true
target-branch:
description: Target branch
source-package:
description: Source package name
required: true
target-repository:
description: Target repository name
Expand Down Expand Up @@ -53,7 +53,7 @@ runs:
cp -r ${{ inputs.source-directory }} ${HOME}/cookies
cd ${HOME}/cookies

for mdakit_directory in $(ls -d */${{ inputs.target-repository }}) ; do
for mdakit_directory in $(ls -d */${{ inputs.source-package }}) ; do
TARGET_BRANCH=$(dirname $mdakit_directory)
echo "Target branch: ${TARGET_BRANCH}"

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ jobs:
uses: ./.github/actions/push-to-cookie
with:
source-directory: ${{ env.OUTPUT_DIRECTORY }}
target-repository: mdakit-cookie
source-package: mdakit-Cookie
target-ssh-deploy-key: ${{ secrets.MDAKIT_COOKIE_SSH_DEPLOY_KEY }}

- name: Push to remote
Expand Down
Loading