Skip to content

Commit 2a8f474

Browse files
committed
ci(actions): Fix lock path
Signed-off-by: Joas Schilling <[email protected]>
1 parent 577847c commit 2a8f474

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/sync-workflow-templates.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ jobs:
5555
5656
# Only copy if the file exists in the target repository
5757
if [ -f "$target_file" ]; then
58-
if [ -f ".github/actions-lock.txt" ]; then
59-
locked_version=$(grep " $filename" .github/actions-lock.txt)
58+
if [ -f "./target/.github/actions-lock.txt" ]; then
59+
locked_version=$(grep " $filename" ./target/.github/actions-lock.txt)
6060
else
61-
echo "# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors" >> .github/actions-lock.txt
62-
echo "# SPDX-License""-Identifier: MIT" >> .github/actions-lock.txt
61+
echo "# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors" >> ./target/.github/actions-lock.txt
62+
echo "# SPDX-License""-Identifier: MIT" >> ./target/.github/actions-lock.txt
6363
locked_version=""
6464
fi
6565
locked_version=$(echo $locked_version | cut -f 1 -d " ")
@@ -82,9 +82,9 @@ jobs:
8282
fi
8383
8484
if [[ "$locked_version" != "" ]]; then
85-
sed -i "s/$locked_version $filename/$new_version $filename/" .github/actions-lock.txt
85+
sed -i "s/$locked_version $filename/$new_version $filename/" ./target/.github/actions-lock.txt
8686
else
87-
echo "$new_version $filename" >> .github/actions-lock.txt
87+
echo "$new_version $filename" >> ./target/.github/actions-lock.txt
8888
fi
8989
else
9090
echo "✅ Skipping $filename: already up to date"

0 commit comments

Comments
 (0)