Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
Revert API method for downlaoding raw github files (#1645)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvonthenen authored Sep 9, 2021
1 parent 0108146 commit 5e179a3
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 84 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/build-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_CHECKS_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/setup.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/setup.sh
chmod +x ./setup.sh
- name: Start EC2 runner
id: start-ec2-runner
Expand Down Expand Up @@ -100,13 +96,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_CHECKS_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/teardown.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/teardown.sh
chmod +x ./teardown.sh
- name: Stop EC2 runner
id: stop-ec2-runner
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/check-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_CHECKS_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/setup.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/setup.sh
chmod +x ./setup.sh
- name: Start EC2 runner
id: start-ec2-runner
Expand Down Expand Up @@ -128,13 +124,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_CHECKS_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/teardown.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/teardown.sh
chmod +x ./teardown.sh
- name: Stop EC2 runner
id: stop-ec2-runner
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/check-pr-docker-management.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_CHECKS_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/setup.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/setup.sh
chmod +x ./setup.sh
- name: Start EC2 runner
id: start-ec2-runner
Expand Down Expand Up @@ -175,13 +171,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_CHECKS_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/teardown.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/teardown.sh
chmod +x ./teardown.sh
- name: Stop EC2 runner
id: stop-ec2-runner
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/check-pr-docker-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_CHECKS_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/setup.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/setup.sh
chmod +x ./setup.sh
- name: Start EC2 runner
id: start-ec2-runner
Expand Down Expand Up @@ -177,13 +173,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_CHECKS_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/teardown.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/teardown.sh
chmod +x ./teardown.sh
- name: Stop EC2 runner
id: stop-ec2-runner
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/release-fake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/setup.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/setup.sh
chmod +x ./setup.sh
- name: Start EC2 runner
id: start-ec2-runner
Expand Down Expand Up @@ -171,13 +167,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/teardown.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/teardown.sh
chmod +x ./teardown.sh
- name: Stop EC2 runner
id: stop-ec2-runner
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/release-ga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/setup.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/setup.sh
chmod +x ./setup.sh
- name: Start EC2 runner
id: start-ec2-runner
Expand Down Expand Up @@ -186,13 +182,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/teardown.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/teardown.sh
chmod +x ./teardown.sh
- name: Stop EC2 runner
id: stop-ec2-runner
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/release-nonga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/setup.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/setup.sh
chmod +x ./setup.sh
- name: Start EC2 runner
id: start-ec2-runner
Expand Down Expand Up @@ -187,13 +183,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_ACCESS_TOKEN }}
shell: bash
run: |
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/ensure-dependencies.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/ensure-dependencies.sh
chmod +x ./ensure-dependencies.sh
curl -H 'Authorization: token ${GITHUB_TOKEN}' \
-H 'Accept: application/vnd.github.v3.raw' -O \
-L https://api.github.com/repos/vmware-tanzu/community-edition/contents/hack/runner/teardown.sh
curl -O -L https://${GITHUB_TOKEN}@raw.githubusercontent.com/vmware-tanzu/community-edition/main/hack/runner/teardown.sh
chmod +x ./teardown.sh
- name: Stop EC2 runner
id: stop-ec2-runner
Expand Down

0 comments on commit 5e179a3

Please sign in to comment.