Skip to content

Commit 0fb704c

Browse files
committed
feat: use owner next to repo
1 parent e8f66e3 commit 0fb704c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ runs:
4040
- name: Run self-hosted validation
4141
if: ${{ inputs.step == 'run-self-hosted-validation' }}
4242
run: |
43-
~/run_validation.sh \
43+
~/runner-scripts/run_validation.sh \
4444
--repo ${{ github.repository }} \
4545
--branch ${{ github.head_ref }} \
4646
--base_branch ${{ github.base_ref }} \
@@ -57,6 +57,7 @@ runs:
5757
uses: actions/download-artifact@v4
5858

5959
- name: Move artifacts to home directory
60+
if: ${{ inputs.step == 'create-comment' }}
6061
run: |
6162
# Move artifacts to home directory
6263
mkdir $HOME/artifacts
@@ -122,7 +123,7 @@ runs:
122123
uses: actions/checkout@v4
123124
with:
124125
repository: lkstrp/pypsa-validator
125-
ref: ${{ github.event.repository.name }}
126+
ref: ${{ github.repository }}
126127
ssh-key: ${{ inputs.repo_private_key }}
127128

128129
- name: Upload relevant plots
@@ -151,7 +152,7 @@ runs:
151152
echo "Adding plots to repo branch"
152153
git add _validation-images
153154
git commit -m "[github-actions.ci] upload validation images to show in comment" || true # ignore if no changes
154-
git push origin ${{ github.event.repository.name }}
155+
git push origin ${{ github.repository }}
155156
echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
156157
shell: bash
157158

0 commit comments

Comments
 (0)