From a76df6f03ad5c42369018d89d49d1b26cfdf6b51 Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Tue, 12 Dec 2023 08:21:36 +0800 Subject: [PATCH 1/6] head commit --- git.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git.yml b/git.yml index ffaa5d4..b503a6b 100644 --- a/git.yml +++ b/git.yml @@ -23,5 +23,5 @@ jobs: git status git remote -v git add . -v - git commit -m ${{ github.event.repository.updated_at }} + git commit -m "${{ github.event.head_commit.timestamp }} - ${{ github.event.repository.name }}" git push From 54b7d8b847e53bbd250ea0503a23c767e4ba9806 Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Tue, 12 Dec 2023 08:35:01 +0800 Subject: [PATCH 2/6] support dev --- git.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git.yml b/git.yml index b503a6b..e35d562 100644 --- a/git.yml +++ b/git.yml @@ -6,12 +6,13 @@ on: jobs: build: name: Git Collect + environment: dev runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: - repository: work-design/engine + repository: ${{ vars.REPO }} ref: main submodules: true token: ${{ secrets.AK }} From 5a5586177db68460b3c79be0be0d5ea61c70f2d8 Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Tue, 12 Dec 2023 08:56:49 +0800 Subject: [PATCH 3/6] try outside github --- git.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/git.yml b/git.yml index e35d562..ddfeee0 100644 --- a/git.yml +++ b/git.yml @@ -13,6 +13,7 @@ jobs: uses: actions/checkout@v4 with: repository: ${{ vars.REPO }} + github-server-url: ${{ vars.SERVER }} ref: main submodules: true token: ${{ secrets.AK }} From ea859c5b728ce4f43f17e0c723e6520395773e25 Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Tue, 12 Dec 2023 09:23:25 +0800 Subject: [PATCH 4/6] revert changes --- git.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git.yml b/git.yml index ddfeee0..7f6ba38 100644 --- a/git.yml +++ b/git.yml @@ -12,8 +12,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - repository: ${{ vars.REPO }} - github-server-url: ${{ vars.SERVER }} + repository: work-design/engine ref: main submodules: true token: ${{ secrets.AK }} From 6690401592369987859fce8989e450ad10dee2dd Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Tue, 12 Dec 2023 11:09:41 +0800 Subject: [PATCH 5/6] github owner --- git.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git.yml b/git.yml index 7f6ba38..6bce09c 100644 --- a/git.yml +++ b/git.yml @@ -12,7 +12,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - repository: work-design/engine + repository: ${{ github.repository_owner }}/engine ref: main submodules: true token: ${{ secrets.AK }} From 6080a19e68dd5a9c7cae8ada29d1dab0b12beaf5 Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Tue, 12 Dec 2023 13:56:38 +0800 Subject: [PATCH 6/6] do not trigger --- docker_github.yml | 6 +++--- test.yml | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docker_github.yml b/docker_github.yml index e07fd23..915c4d7 100644 --- a/docker_github.yml +++ b/docker_github.yml @@ -1,8 +1,8 @@ name: Docker Github on: - push: - branches: - - main + create: + tags: + - 'v*' jobs: build: name: Build image diff --git a/test.yml b/test.yml index 891a84b..92056f7 100644 --- a/test.yml +++ b/test.yml @@ -1,5 +1,8 @@ name: Test -on: [push] +on: + push: + branches: + - test jobs: test: runs-on: ubuntu-latest