Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Add origami-version GitHub Action #27

Merged
merged 1 commit into from
Mar 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}