From 450f6fee798fd67822d356b20ad5da8f0b0fab15 Mon Sep 17 00:00:00 2001 From: Han Ning Date: Tue, 9 Jul 2024 16:58:12 +0800 Subject: [PATCH] run workflow on self-hosted runner Signed-off-by: Han Ning --- .github/workflows/merge_pull_request.yml | 4 +--- .github/workflows/push.yml | 9 +++------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/merge_pull_request.yml b/.github/workflows/merge_pull_request.yml index 5c58c233..16aae081 100644 --- a/.github/workflows/merge_pull_request.yml +++ b/.github/workflows/merge_pull_request.yml @@ -4,13 +4,11 @@ on: pull_request: types: - closed - branches: - - ci jobs: MergedAction: if: github.event.pull_request.merged == true - runs-on: ubuntu-latest + runs-on: [self-hosted] steps: - name: Prepare run: echo "preparing" diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index f003be05..7193f785 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,13 +1,10 @@ name: Push permissions: read-all -on: - push: - branches: - - ci +on: push jobs: DummyAction: - runs-on: ubuntu-latest + runs-on: [self-hosted] steps: - name: Prepare run: echo "preparing" @@ -16,4 +13,4 @@ jobs: with: fetch-depth: 0 - name: Post Process - run: echo "post processing" \ No newline at end of file + run: echo "post processing"