-
-
Notifications
You must be signed in to change notification settings - Fork 136
50 lines (45 loc) · 1.38 KB
/
set-prerelease.yml
File metadata and controls
50 lines (45 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: ' 👀 Set Prerelease'
on: # rebuild any PRs and main branch changes
workflow_dispatch:
inputs:
prerelease:
type: boolean
description: Is prerelease?
default: true
env:
BRANCH_NAME: update-prerelease-mode
permissions:
contents: write
pull-requests: write
jobs:
set-prerelease-mode:
if: github.repository_owner == 'streetsidesoftware'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: main
- name: Install Node.js
uses: ./.github/actions/setup-node
- run: node ./scripts/set-prerelease-mode.js ${{ inputs.prerelease }}
- name: Get Mode
id: prerelease-mode
uses: ./.github/actions/is-prerelease
- name: Show Args
uses: streetsidesoftware/actions/public/summary@v1
with:
text: |
# Prerelease Mode
```
${{ toJSON(steps.prerelease-mode.outputs) }}
```
- name: PR
uses: peter-evans/create-pull-request@v8
with:
commit-message: 'chore: Set Prerelease Mode to `${{ inputs.prerelease }}`'
branch: ${{ env.BRANCH_NAME }}
base: main
title: 'chore: Set Prerelease Mode to `${{ inputs.prerelease }}`'
body: |
Set Prerelease Mode to `${{ inputs.prerelease }}`
token: ${{ secrets.GITHUB_TOKEN }}