Skip to content

Commit

Permalink
test caching
Browse files Browse the repository at this point in the history
  • Loading branch information
RickGelhausen committed Jun 26, 2024
1 parent 7aef54a commit 4ad3c21
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/build-pages.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
name: build-github-pages
env:
GITHUB_ACTOR: BackofenLab
GITHUB_REPOSITORY: BackofenLab/Optimierung-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

on:
push:
Expand All @@ -22,15 +18,8 @@ jobs:
build_rmarkdown_job:
runs-on: ubuntu-latest
steps:
- name: Get prerequisites and clone repository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
sudo apt-get update
sudo apt-get install -y git
git clone "https://token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" .
shell: bash
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
Expand All @@ -50,7 +39,7 @@ jobs:
with:
path: ${{ env.CONDA }}/envs
key:
conda-${{ runner.os }}--${{ runner.arch }}--${{steps.get-date.outputs.today }}-${{hashFiles('etc/example-environment-caching.yml') }}-${{ env.CACHE_NUMBER}}
conda-${{ runner.os }}--${{ runner.arch }}--${{steps.get-date.outputs.today }}-${{hashFiles('.github/envs/environment.yml') }}-${{ env.CACHE_NUMBER}}
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
Expand Down

0 comments on commit 4ad3c21

Please sign in to comment.