Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ashbuilds authored Jul 24, 2024
1 parent 5623fc1 commit a9eb505
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ name: Build Plugin
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

permissions:
contents: write

jobs:
build:
Expand All @@ -16,7 +19,6 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Use Node.js
uses: actions/setup-node@v3
Expand Down Expand Up @@ -58,5 +60,5 @@ jobs:
echo "No changes to commit"
else
git commit -m "Automated build"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }}
git push
fi

0 comments on commit a9eb505

Please sign in to comment.