Skip to content

Trigger Deploy

Trigger Deploy #28

Workflow file for this run

name: Trigger Deploy
on:
schedule:
- cron: 0 15 * * *
workflow_dispatch: { }
permissions: { }
jobs:
deploy:
permissions:
contents: read # to fetch code (actions/checkout)
deployments: write # to create deployment
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Create Deployment
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
with:
github-token: ${{ secrets.flexgetbot_pat }}
script: |
await github.rest.repos.createDeployment({
...context.repo,
ref: context.ref.slice(11),
});