Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release preview workflow #1440

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/release-plan-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release Plan Review
on:
push:
branches:
- main

env:
VOLTA_FEATURE_PNPM: 1
branch: "gh-workflow/release-preview"
title: "Preview Release"

jobs:
update_unstable_branch:
name: Update Unstable Branch
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
explanation: ${{ steps.explanation.outputs.text }}

steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: 'Prepare git branch'
run: |
set +e
git branch -D ${{ env.branch }}
set -e
git switch -c ${{ env.branch }}

- id: explanation
run: |
echo "text=$(pnpm embroider-release explain-plan)" >> $GITHUB_OUTPUT
- run: pnpm embroider-release gather-changes
NullVoxPopuli marked this conversation as resolved.
Show resolved Hide resolved
- run: pnpm embroider-release prepare

- run: |
git config user.name "github-actions[bot]"
git config user.email "[email protected]"
git add .
git commit -m "Automated update"
git push origin ${{ env.branch }} --force

- uses: peter-evans/create-pull-request@v5
with:
commit-message: "Prepare Release"
draft: true
branch: ${{ env.branch }}
base: 'main'
title: ${{ env.title }}
body: ${{ steps.explanation.outputs.text }}