Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed May 22, 2023
1 parent 5da5a45 commit 75c97b7
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/release-plan-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ jobs:
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- name: 'Prepare git branch'
run: |
set +e
git branch -D ${{ env.branch }}
set -e
git switch -c ${{ env.branch }}
- name: "Configure Git"
run: |
git config user.name "github-actions[bot]"
git config user.email "[email protected]"
- name: "Generate Explanation and Prep Changelogs"
id: explanation
run: |
Expand All @@ -48,20 +36,15 @@ jobs:
# Don't print this, because it can be very large
set +x
echo "text=$( echo $plan )" >> $GITHUB_OUTPUT
# For debugging
set -x
git diff
git add -A .
git commit -am "Automated update"
git push origin ${{ env.branch }} --force
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}

- uses: peter-evans/create-pull-request@v5
with:
commit-message: "Prepare Release"
commit-message: "Prepare Release using 'embroider-release'"
author: "github-actions[bot] <[email protected]>"
labels: "internal"
draft: true
branch: ${{ env.branch }}
base: 'main'
title: ${{ env.title }}
body: ${{ steps.explanation.outputs.text }}

0 comments on commit 75c97b7

Please sign in to comment.