Skip to content

Commit

Permalink
weekly release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <[email protected]>
  • Loading branch information
ndeloof committed Sep 14, 2021
1 parent 6e19c36 commit 142a810
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Weekly Release

on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%s')"
- name: Get weekly release number
id: weekly
run: echo "::set-output name=weekly::$(expr ${{ steps.date.outputs.date }} / 86400 / 7 - 2697)"
- uses: ncipollo/release-action@v1
with:
tag: v1.${{ steps.weekly.outputs.weekly }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 142a810

Please sign in to comment.