Skip to content

Fix commit 7b5a417 "Add Trigger Deploy to Pages action" 4 #4

Fix commit 7b5a417 "Add Trigger Deploy to Pages action" 4

Fix commit 7b5a417 "Add Trigger Deploy to Pages action" 4 #4

name: Trigger Deploy to Pages
on:
push:
branches: main
paths: install.sh
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Trigger-Deploy-to-Pages:
name: Trigger Deploy to Pages
runs-on: macos-latest
steps:
- name: Trigger Deploy to Pages
uses: actions/github-script@main
env:
GITHUB_TOKEN: ${{ secrets.TRIGGER_DEPLOY_TO_PAGES_TOKEN }}
with:
github-token: ${{ secrets.TRIGGER_DEPLOY_TO_PAGES_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: "F1248",
repo: "f1248.github.io",
workflow_id: "Deploy-to-Pages.yml",
ref: "main",
});