Skip to content

Commit

Permalink
Add init_instance workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Nov 25, 2023
1 parent 5465465 commit b13b255
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/init_instance.yml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 11 additions & 0 deletions README.md.in
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit b13b255

Please sign in to comment.