1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-26 01:13:41 +02:00

Split release workflow into two workflows (#4348)

* Split release workflow into two

Split the release workflow - which so far created and helped merging
release PRs - into a workflow for reating the release PR and one for
helping to merge it.

* Simplify merge-release.yml if-condition
This commit is contained in:
Eric Cornelissen 2020-12-14 14:06:01 +01:00 committed by GitHub
parent 47a94a6308
commit 92d2a3e678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 16 deletions

13
.github/workflows/create-release.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Automated releases
on:
schedule:
# "At 00:00 on Sunday" (https://crontab.guru/once-a-week)
- cron: "0 0 * * 0"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: simple-icons/release-action@master
with:
repo-token: ${{ secrets.NPM_TOKEN }}

13
.github/workflows/merge-release.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Automated releases
on:
pull_request_review:
types: [submitted]
jobs:
release:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'release')
steps:
- uses: simple-icons/release-action@master
with:
repo-token: ${{ secrets.RELEASE_TOKEN }}

View File

@ -1,16 +0,0 @@
name: Automated releases
on:
pull_request_review:
types: [submitted]
schedule:
# "At 00:00 on Sunday" (https://crontab.guru/once-a-week)
- cron: "0 0 * * 0"
jobs:
release:
runs-on: ubuntu-latest
if: (github.event_name == 'pull_request_review' && contains(github.event.pull_request.labels.*.name, 'release')) || github.event_name == 'schedule'
steps:
- uses: simple-icons/release-action@master
with:
repo-token: ${{ secrets.RELEASE_TOKEN }}