Skip to content

Commit

Permalink
Add origami-version GitHub Action
Browse files Browse the repository at this point in the history
When this is merged, we can have automated releases by using the release-type labels "major"/"minor"/"patch" on a pull-request before merging the pull-request.
  • Loading branch information
JakeChampion committed Mar 16, 2020
1 parent 396d6be commit 1bd944b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/automatic-tag-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
pull_request:
types: [closed] # Merged pull-requests count as closed pull-requests.

jobs:
create-new-version:
runs-on: ubuntu-latest
name: Create new version/tag
steps:
- uses: actions/checkout@v2
if: github.event.pull_request.merged # Only run on merged pull-requests
with:
ref: ${{ github.event.pull_request.merge_commit_sha }} # Checkout the merged commit
fetch-depth: 0
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # Get all tags from the origin
- uses: Financial-Times/origami-version@v1
name: Create new version/tag
if: github.event.pull_request.merged # Only run on merged pull-requests
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1bd944b

Please sign in to comment.