Skip to content

Commit

Permalink
Merge pull request #49 from rem1776/version-dev-action
Browse files Browse the repository at this point in the history
fix release trigger running more than once
  • Loading branch information
rem1776 authored Oct 13, 2022
2 parents 72b6e0a + fa2a97e commit 1190cd4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Generate and deploy documentation on GH pages

# update on releases or when triggered manually(must have write access)
on: [release, workflow_dispatch]

on:
release:
types: [published]
workflow_dispatch:
jobs:
update_docs:
runs-on: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
on: release
on:
release:
types: [published]
jobs:
add-dev-to-version:
runs-on: ubuntu-latest
Expand All @@ -13,3 +15,6 @@ jobs:
branch: add-dev-post-release # name of the created branch
branch-suffix: timestamp # add a timestamp to branch name
delete-branch: true # delete afer merge
title: Append dev to version number post-release
body: automated change, adds '-dev' to the version number upon releases
reviewers: rem1776

0 comments on commit 1190cd4

Please sign in to comment.