diff --git a/.github/workflows/init_instance.yml b/.github/workflows/init_instance.yml new file mode 100644 index 0000000..0f0b4dc --- /dev/null +++ b/.github/workflows/init_instance.yml @@ -0,0 +1,36 @@ +name: Initialize instantiated template + +on: + push: + paths: + - 'README.md.in' + +jobs: + build: + runs-on: ubuntu-latest + steps: + + - name: Initialize repository + uses: actions/checkout@v2 + + - name: Update repository + run: git mv README.md.in README.md + + - name: Update README.md + uses: MathieuSoysal/replace-string-in-file@v1.0.0 + with: + file: README.md + old-string: @username@ + new-string: ${{ github.repository_owner }} + + - name: Commit and push repository + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Initialize instantiated template + + - name: Disable this workflow + shell: bash + run: | + gh workflow disable -R $GITHUB_REPOSITORY "${{ github.workflow }}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md.in b/README.md.in new file mode 100644 index 0000000..95186b1 --- /dev/null +++ b/README.md.in @@ -0,0 +1,11 @@ +# [Methoden der Bioinformatik, Python-Praktikum]() + +Howdy, **@username@** + +**Downloads:** +📝 [assignments.pdf](https://github.com/BMCV/mobi-fs3-python-assignments/releases/download/current/assignments.pdf), +🧑‍🏫 [slides.pdf](https://github.com/BMCV/mobi-fs3-python-lecture/releases/download/current/slides.pdf) + +**Steps to start coding:** +1. Click on "Code", then the "Codespaces" tab. +2. And finally hit the "Create codespace on master" button.