Skip to content

Commit

Permalink
chore: Do not trigger all actions when updating the prerelease status. (
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Jan 2, 2025
1 parent 6fef7d2 commit 8997327
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/set-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ on: # rebuild any PRs and main branch changes
type: boolean
description: Is prerelease?
default: true

env:
BRANCH_NAME: update-prerelease-mode
permissions:
contents: write
pull-requests: write
jobs:
set-prerelease-mode:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main

- name: Install Node.js
uses: actions/setup-node@v4
Expand All @@ -34,13 +40,12 @@ jobs:
```
- name: PR
uses: streetsidesoftware/actions/.github/actions/pr@v1
uses: peter-evans/create-pull-request@v3
with:
commit-message: 'fix: Set Prerelease Mode to `${{ inputs.prerelease }}`'
branch: update-prerelease-mode
branch: ${{ env.BRANCH_NAME }}
base: main
title: 'fix: Set Prerelease Mode to `${{ inputs.prerelease }}`'
body: |
Set Prerelease Mode to `${{ inputs.prerelease }}`
app_id: ${{ secrets.AUTOMATION_APP_ID }}
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8997327

Please sign in to comment.