Skip to content

Commit

Permalink
Merge pull request scala#8618 from dotty-staging/ci-cleanup
Browse files Browse the repository at this point in the history
Better cleanup strategy for GH Actions CI
  • Loading branch information
anatoliykmetyuk authored Mar 26, 2020
2 parents faa26c6 + de13264 commit 703fda0
Showing 1 changed file with 56 additions and 14 deletions.
70 changes: 56 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ jobs:
container: akmetiuk/dotty:2020-02-12

steps:
- name: Clean Workspace
uses: anatoliykmetyuk/[email protected]
- name: Cleanup
run: |
TARGETS="$(pwd) /__w/_temp /github/home"
for folder in $TARGETS; do
echo "Cleaning $folder"
cd $folder
rm -rf ..?* .[!.]* *
done
- name: Git Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -52,8 +58,14 @@ jobs:
container: akmetiuk/dotty:2020-02-12

steps:
- name: Clean Workspace
uses: anatoliykmetyuk/[email protected]
- name: Cleanup
run: |
TARGETS="$(pwd) /__w/_temp /github/home"
for folder in $TARGETS; do
echo "Cleaning $folder"
cd $folder
rm -rf ..?* .[!.]* *
done
- name: Git Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -89,8 +101,14 @@ jobs:
container: akmetiuk/dotty:2020-02-12

steps:
- name: Clean Workspace
uses: anatoliykmetyuk/[email protected]
- name: Cleanup
run: |
TARGETS="$(pwd) /__w/_temp /github/home"
for folder in $TARGETS; do
echo "Cleaning $folder"
cd $folder
rm -rf ..?* .[!.]* *
done
- name: Git Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -132,8 +150,14 @@ jobs:
github.event_name == 'schedule'

steps:
- name: Clean Workspace
uses: anatoliykmetyuk/[email protected]
- name: Cleanup
run: |
TARGETS="$(pwd) /__w/_temp /github/home"
for folder in $TARGETS; do
echo "Cleaning $folder"
cd $folder
rm -rf ..?* .[!.]* *
done
- name: Git Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -172,8 +196,14 @@ jobs:
github.event_name == 'schedule'

steps:
- name: Clean Workspace
uses: anatoliykmetyuk/[email protected]
- name: Cleanup
run: |
TARGETS="$(pwd) /__w/_temp /github/home"
for folder in $TARGETS; do
echo "Cleaning $folder"
cd $folder
rm -rf ..?* .[!.]* *
done
- name: Git Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -217,8 +247,14 @@ jobs:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}

steps:
- name: Clean Workspace
uses: anatoliykmetyuk/[email protected]
- name: Cleanup
run: |
TARGETS="$(pwd) /__w/_temp /github/home"
for folder in $TARGETS; do
echo "Cleaning $folder"
cd $folder
rm -rf ..?* .[!.]* *
done
- name: Git Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -260,8 +296,14 @@ jobs:
# Make sure you have the write permissions to the repo: https://github.com/lampepfl/dotty-website

steps:
- name: Clean Workspace
uses: anatoliykmetyuk/[email protected]
- name: Cleanup
run: |
TARGETS="$(pwd) /__w/_temp /github/home"
for folder in $TARGETS; do
echo "Cleaning $folder"
cd $folder
rm -rf ..?* .[!.]* *
done
- name: Git Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 703fda0

Please sign in to comment.