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:
parent
47a94a6308
commit
92d2a3e678
13
.github/workflows/create-release.yml
vendored
Normal file
13
.github/workflows/create-release.yml
vendored
Normal 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
13
.github/workflows/merge-release.yml
vendored
Normal 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 }}
|
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@ -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 }}
|
Loading…
Reference in New Issue
Block a user