Skip to content

Commit

Permalink
Only allow manual triggering of building demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Jan 1, 2021
1 parent e98efc4 commit c1881b7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/make-demo-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
name: Make Demo Repo

on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
workflow_dispatch:

jobs:
Expand All @@ -19,10 +16,6 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0 # avoids shallow checkout as needed by setuptools-scm
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Set up Conda environment
uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -38,7 +31,6 @@ jobs:
git config --global user.name "John Doe"
putup demo-dsproject --dsproject -d "Demonstration of a project generated with the Data Science project extension of PyScaffold" -u https://github.com/pyscaffold/pyscaffoldext-dsproject -l MIT
- name: Push to dsproject-demo
if: ${{ steps.extract_branch.outputs.branch }} == 'master' # run only for tags on master branch
uses: cpina/github-action-push-to-another-repository@master
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
Expand Down

0 comments on commit c1881b7

Please sign in to comment.