Skip to content

Commit

Permalink
Update satis-build-on-webhook.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Aug 22, 2024
1 parent 5bc6cf2 commit b13db22
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/satis-build-on-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,38 @@ jobs:

- name: List files
run: ls -lah ./dist

- name: Commit web files
run: |
cd ./dist
git config --local user.name "Newfold WordPress Team"
git config --local user.email "wordpress-coe@newfold.com"
git remote -v
git add -A
git commit -m "Satis build triggered by release $VERSION of $VENDOR/$PACKAGE"
git status
cd -
- name: Push changes
uses: ad-m/github-push-action@v0.8.0
with:
branch: gh-pages
directory: ./dist
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
event-type: 'package-released'
client-payload: >-
{
"vendor": "$VENDOR",
"package": "$PACKAGE",
"version": "$VENDOR"
}
- name: Send message to ms teams
uses: dhollerbach/actions.send-message-to-ms-teams@1.0.10
with:
webhook: '${{ secrets.INCOMING_WEBHOOK_URL }}'
message: "Release ${{ github.event.client_payload.version }} of ${{ github.event.client_payload.vendor }}/${{ github.event.client_payload.package }} on satis is complete!\nVisit https://newfold-labs.github.io/satis/"

0 comments on commit b13db22

Please sign in to comment.