Skip to content

Commit

Permalink
Update to generate PRs in any case
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers committed Aug 30, 2024
1 parent 1271afb commit bfa59c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generateclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ jobs:
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" src\net\JNet.sln

- name: Extract commit SHA
if: ${{ github.repository_owner == 'masesgroup' && inputs.GeneratePR == true }}
if: ${{ inputs.GeneratePR == true }}
run: |
echo "GITHUB_COMMIT_MESSAGE=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
shell: bash

- name: Request a PR to commit changes
if: ${{ github.repository_owner == 'masesgroup' && inputs.GeneratePR == true }} #do not push any changes outside main repo or GeneratePR is false
if: ${{ inputs.GeneratePR == true }}
uses: peter-evans/create-pull-request@v6
with:
branch-suffix: short-commit-hash
Expand Down

0 comments on commit bfa59c9

Please sign in to comment.