Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Command Not found - Exit code 127 #3

Open
heaivilin opened this issue Sep 18, 2022 · 0 comments
Open

Command Not found - Exit code 127 #3

heaivilin opened this issue Sep 18, 2022 · 0 comments

Comments

@heaivilin
Copy link

Hello,

Working on utilizing this to automatically deploy my DB project to a SQL Azure database. However, when I try it, I'm getting the following:

_> Run Azure/[email protected]

with:
action: Publish
sourcepath: .\Northwinds\Northwinds\bin\debug
profile: .\Northwinds\Northwinds\PublishProfiles\dev.publish.xml
outputpath: .
outputfile: deployreport.xml
env:
SOLUTION_FILE_PATH: .\Northwinds\Northwinds
BUILD_CONFIGURATION: debug
Run if test -f "/opt/sqlpackage/sqlpackage"; then
if test -f "/opt/sqlpackage/sqlpackage"; then
echo "::debug::SqlPackage already installed in the context"
else
sudo apt-get install libunwind8
wget -progress=bar:force -q -O sqlpackage.zip
https://aka.ms/sqlpackage-linux
&& unzip -qq sqlpackage.zip -d /opt/sqlpackage
&& chmod a+x /opt/sqlpackage/sqlpackage
&& rm sqlpackage.zip
fi
shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}
env:
SOLUTION_FILE_PATH: .\Northwinds\Northwinds
BUILD_CONFIGURATION: debug

D:\a_temp\5f5fc9d2-9be6-47c5-9d32-d9a0401fbf52.sh: line 4: sudo: command not found
Error: Process completed with exit code 127._

You should be able to find the code and runs here: GitHub\PASS2022Demo
BuildProject.txt

The BuildProject.txt is a copy of the yml action file being used.

Code in question:
- name: run-sqlpackage
uses: Azure/[email protected]
with:
action: 'Publish'
sourcepath: ${{env.SOLUTION_FILE_PATH}}\bin\debug\
profile: ${{env.SOLUTION_FILE_PATH}}\PublishProfiles\dev.publish.xml

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant