From 955851e72253f4364b5f1e82345be2000cf5dde9 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Thu, 27 Nov 2025 17:21:30 +0800 Subject: [PATCH] Update Deno Deploy workflow trigger and concurrency Change the workflow trigger from push on 'functions' branch to workflow_run on 'main' after 'Sync to Pages and Functions' completes. Add concurrency group to prevent overlapping runs. --- .github/workflows/functions-dn.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/functions-dn.yml b/.github/workflows/functions-dn.yml index 7748832..96dbf53 100644 --- a/.github/workflows/functions-dn.yml +++ b/.github/workflows/functions-dn.yml @@ -1,11 +1,18 @@ name: Deploy to Deno Deploy on: - push: + workflow_run: + workflows: ["Sync to Pages and Functions"] + types: + - completed branches: - - functions + - main workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false + permissions: id-token: write contents: read