Skip to content

Commit

Permalink
Update trigger-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTheMan827 authored Jan 29, 2025
1 parent 64b58c5 commit c0e6839
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/trigger-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Trigger Node.js Workflow

on:
push:
branches:
- '*'
branches-ignore:
- master
workflow_dispatch:
Expand All @@ -17,10 +15,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Trigger Node.js workflow if pushed to any branch other than master
- name: Trigger build workflow if pushed to any branch other than master
run: |
# Trigger the node.js.yml workflow via GitHub API using curl
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-d '{"ref": "master"}' \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/node.js.yml/dispatches
"https://api.github.com/repos/${{ github.repository }}/actions/workflows/node.js.yml/dispatches"

0 comments on commit c0e6839

Please sign in to comment.