Skip to content

Commit

Permalink
chore: Style improvements (#57)
Browse files Browse the repository at this point in the history
* pr link

* remove auto change

* comment
  • Loading branch information
lucaspopp-wbd authored Jun 11, 2024
1 parent ddd777e commit b293689
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: generate
name: generate-sdk

on:
workflow_dispatch:
Expand Down Expand Up @@ -27,7 +27,7 @@ concurrency:

jobs:

generate:
generate-sdk:
runs-on: ubuntu-latest
outputs:
pr-number: ${{ steps.create-pr.outputs.pull-request-number }}
Expand Down Expand Up @@ -63,8 +63,6 @@ jobs:
- name: Detect generated changes
id: changes
run: |
echo "${{ steps.pr-head.outputs.name }}" >> .trigger
git add .trigger
git add isp
git add isp-slate
git status -s
Expand All @@ -86,3 +84,13 @@ jobs:
title: 'chore: bump sdk version'
body: |
Generated by [${{ github.workflow }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
Comment `recreate-me` on this pull request to have it closed and re-created
- name: Print summary
if: steps.changes.outputs.should-commit == 'true'
env:
PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}
PR_URL: ${{ steps.create-pr.outputs.pull-request-url }}
run: |
echo "Created [#${PR_NUMBER}](${PR_URL})" > "$GITHUB_STEP_SUMMARY"
9 changes: 9 additions & 0 deletions .github/workflows/pr-comment-handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ jobs:
echo "head=$headRefName" | tee -a "$GITHUB_OUTPUT"
echo "base=$baseRefName" | tee -a "$GITHUB_OUTPUT"
- name: Comment on PR
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ github.event.issue.number }}
recreate: true
header: recreation
message: |
This pull request is being re-created by [${{ github.workflow }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
create-new:
needs: [handle-comment]
Expand Down

0 comments on commit b293689

Please sign in to comment.