Skip to content

Trigger Build and Deploy Workflow #2

Trigger Build and Deploy Workflow

Trigger Build and Deploy Workflow #2

Workflow file for this run

name: Trigger Node.js Workflow
on:
push:
branches-ignore:
- master
workflow_dispatch:
permissions:
contents: read
actions: write # Ensure the token can trigger workflows
jobs:
trigger-nodejs-workflow:
runs-on: ubuntu-latest
steps:
- 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"