mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 01:15:50 +08:00
[GitHub] Add --fail to curl commands (#72238)
This means that if we try to download a missing file, we do not get a document with the same file name, but containing only the http response code. ``` $ curl -O -L --fail https://raw.githubusercontent.com/llvm/llvm-project/main/.github/workflows/not-a-file.py % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 $ $? 22: command not found ``` Which will be less confusing than python complaining about the file contents.
This commit is contained in:
4
.github/workflows/issue-subscriber.yml
vendored
4
.github/workflows/issue-subscriber.yml
vendored
@@ -15,8 +15,8 @@ jobs:
|
||||
steps:
|
||||
- name: Setup Automation Script
|
||||
run: |
|
||||
curl -O -L https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/github-automation.py
|
||||
curl -O -L https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/requirements.txt
|
||||
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/github-automation.py
|
||||
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/requirements.txt
|
||||
chmod a+x github-automation.py
|
||||
pip install -r requirements.txt
|
||||
|
||||
|
||||
4
.github/workflows/pr-subscriber.yml
vendored
4
.github/workflows/pr-subscriber.yml
vendored
@@ -15,8 +15,8 @@ jobs:
|
||||
steps:
|
||||
- name: Setup Automation Script
|
||||
run: |
|
||||
curl -O -L https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/github-automation.py
|
||||
curl -O -L https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/requirements.txt
|
||||
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/github-automation.py
|
||||
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/requirements.txt
|
||||
chmod a+x github-automation.py
|
||||
pip install -r requirements.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user