Skip to content

Commit

Permalink
fix: small generate action fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Jul 12, 2024
1 parent fe4d789 commit 1dd9126
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- cron: '0 0 1 * *' # Runs on the first day of each month at midnight
workflow_dispatch: # Allows the workflow to be triggered manually

permissions:
contents: write
pull-requests: write

jobs:
update-and-pr:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,15 +48,17 @@ jobs:
else
echo "No changes detected."
echo "::set-output name=changes_detected::false"
echo "::set-output name=branch::"
echo "::set-output name=branch::$BRANCH_NAME"
fi
- name: Create Pull Request 🚀
if: steps.check_changes.outputs.changes_detected == 'true'
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ steps.check_changes.outputs.branch }}
base: master
title: "🤖Automated update"
body: "This PR contains automated updates from running `npm run update`"
labels: ["automated update"]
labels: "automated update"

0 comments on commit 1dd9126

Please sign in to comment.