如何在 GitHub 动作中实现 ./cloud_sql_proxy?
How to implement ./cloud_sql_proxy in GitHub Actions?
jobs:
job1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download Cloud SQL Auth Proxy
run: |
wget https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 -O cloud_sql_proxy
chmod +x cloud_sql_proxy
job2:
needs: job1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: ./cloud_sql_proxy \
-instances=...
我收到这个错误:
./cloud_sql_proxy: No such file or directory
我想分开 job1
和 job2
。
如何在 job2
中使用 ./cloud_sql_proxy
命令?
jobs:
job1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download Cloud SQL Auth Proxy
run: |
wget https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 -O cloud_sql_proxy
chmod +x cloud_sql_proxy
job2:
needs: job1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: ./cloud_sql_proxy \
-instances=...
我收到这个错误:
./cloud_sql_proxy: No such file or directory
我想分开 job1
和 job2
。
如何在 job2
中使用 ./cloud_sql_proxy
命令?