Skip to content
Open
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
44 changes: 44 additions & 0 deletions .github/workflows/createtag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Create

on:
schedule:
- cron: '0 0 * * 0'

jobs:
find:
runs-on: ubuntu-latest
steps:
- name: Find tag
uses: oprypin/find-latest-tag@v1
id: findTag
with:
repository: ome/omero-web
- name: Check if the tag exists already or not
uses: mukunku/tag-exists-action@v1.0.0
id: checkTag
with:
tag: ${{ steps.findTag.outputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check if it is a prerelease or not
run: |
if [[ "${{ steps.findTag.outputs.tag }}" == *"rc"* ]]; then
echo "::set-output name=PRERELEASE::true"
else
echo "::set-output name=PRERELEASE::false"
fi
id: prerelease
- name: Build
if: "${{ steps.checkTag.outputs.exists == 'false' }}"
run: ./build.sh
- name: Create and push tag
if: "${{ steps.checkTag.outputs.exists == 'false' }}"
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.findTag.outputs.tag }}
name: "Release ${{ steps.findTag.outputs.tag }}"
draft: false
prerelease: ${{ steps.prerelease.outputs.PRERELEASE }}