Skip to content

Commit

Permalink
Block deprecated repos in /etc/hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Jan 30, 2024
1 parent aaaa7c0 commit 372f672
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
(github.event_name == 'schedule' && github.event.repository.fork == true && inputs.run-scheduled-in-forks == true)
runs-on: ubuntu-20.04
steps:
- name: Block deprecated repos in /etc/hosts
run: |
sudo echo "127.0.0.1 repo.scala-sbt.org" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 repo.typesafe.com" | sudo tee -a /etc/hosts
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/binary-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
(github.event_name == 'schedule' && github.event.repository.fork == true && inputs.run-scheduled-in-forks == true)
runs-on: ubuntu-20.04
steps:
- name: Block deprecated repos in /etc/hosts
run: |
sudo echo "127.0.0.1 repo.scala-sbt.org" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 repo.typesafe.com" | sudo tee -a /etc/hosts
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ jobs:
# WA: https://git.luolix.topmunity/t/reusable-workflow-with-strategy-matrix/205676/6
matrix: ${{fromJson(needs.prepare-matrix.outputs.matrix)}}
steps:
- name: Block deprecated repos in /etc/hosts
run: |
sudo echo "127.0.0.1 repo.scala-sbt.org" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 repo.typesafe.com" | sudo tee -a /etc/hosts
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
name: Gradle Wrapper Validation
runs-on: ubuntu-20.04
steps:
- name: Block deprecated repos in /etc/hosts
run: |
sudo echo "127.0.0.1 repo.scala-sbt.org" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 repo.typesafe.com" | sudo tee -a /etc/hosts
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
runs-on: ubuntu-20.04
if: ${{ github.event.repository.fork == false }}
steps:
- name: Block deprecated repos in /etc/hosts
run: |
sudo echo "127.0.0.1 repo.scala-sbt.org" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 repo.typesafe.com" | sudo tee -a /etc/hosts
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 372f672

Please sign in to comment.