Skip to content

Commit

Permalink
removed sudo command when calling script
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveW-STFC committed Oct 3, 2024
1 parent 49aec42 commit 7585311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr_copied_files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
echo "Files that have changed: $STAGING_ALL_CHANGED_FILES"
echo "result=true" >> "$GITHUB_OUTPUT"
for file in ${{ steps.changed-files.outputs.staging_all_changed_files }}; do
res=$( sudo ./pr_check_copy.sh "$file" "staging" "dev" )
res=$( ./pr_check_copy.sh "$file" "staging" "dev" )
echo $res
if [ "$res" -eq 1 ]; then
echo "result=false" >> "$GITHUB_OUTPUT"
Expand All @@ -63,7 +63,7 @@ jobs:
echo "Files that have changed: $PROD_ALL_CHANGED_FILES"
echo "result=true" >> "$GITHUB_OUTPUT"
for file in ${{ steps.changed-files.outputs.prod_all_changed_files }}; do
res=$( sudo ./pr_check_copy.sh "$file" "prod" "staging" )
res=$( ./pr_check_copy.sh "$file" "prod" "staging" )
echo $res
if [ "$res" -eq 1 ]; then
echo "result=false" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 7585311

Please sign in to comment.