From b3e7d50cefa70f1bcc93db38a095e826fcfa5687 Mon Sep 17 00:00:00 2001 From: Tetsuo Koyama Date: Fri, 5 May 2023 11:40:02 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=91=B7=20Add=20commit=20job=20to=20ke?= =?UTF-8?q?ep=20action=20enable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f2849e6..ba20bc5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,3 +35,36 @@ jobs: destination_repo: "git@github.com:getfem-doc/getfem.git" destination_branch: "refs/tags/*" ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Get Job URL + uses: Tiryoh/gha-jobid-action@v0 + id: jobs + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + job_name: script + - name: Setup SSH + uses: MrSquaare/ssh-setup-action@v2 + with: + host: github.com + private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: git_config + env: + NAME: "getfem-auto-update" + EMAIL: "getfem-auto-update" + run: | + git branch -a + git config --global user.email $EMAIL + git config --global user.name $NAME + - name: commit + if: contains(github.event.head_commit.message, '[ci skip]') == false && contains(github.ref, 'master') + env: + ORGANIZATION: getfem-doc + REPO: getfem-github-actions + JOB_ID: ${{ steps.jobs.outputs.job_id }} + HTML_URL: ${{ steps.jobs.outputs.html_url }} + run: | + git add . + git commit --allow-empty -m "[ci skip] $JOB_ID + $HTML_URL" + git remote -v + git remote add github git@github.com:$ORGANIZATION/$REPO.git + git push github master From c766cc3c03f9f36bdd49282e5200d8899864e40e Mon Sep 17 00:00:00 2001 From: Tetsuo Koyama Date: Thu, 23 Nov 2023 18:14:39 +0900 Subject: [PATCH 2/4] Update main.yml --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ba20bc5..d8a7f6c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,6 +54,11 @@ jobs: git branch -a git config --global user.email $EMAIL git config --global user.name $NAME + - name: checkout with submodule + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.PERSONAL_ACCESSTOKEN }} - name: commit if: contains(github.event.head_commit.message, '[ci skip]') == false && contains(github.ref, 'master') env: From f00678368abd6cac1b72ec34c8b9aabbb8fd9745 Mon Sep 17 00:00:00 2001 From: Tetsuo Koyama Date: Thu, 23 Nov 2023 18:16:02 +0900 Subject: [PATCH 3/4] Update main.yml --- .github/workflows/main.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8a7f6c..2162e02 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,14 +19,6 @@ jobs: destination_repo: "git@github.com:getfem-doc/getfem.git" destination_branch: "refs/heads/master" ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} - - name: fixmisspell-sync - uses: wei/git-sync@v2 - with: - source_repo: "https://git.savannah.nongnu.org/git/getfem.git" - source_branch: "refs/heads/fixmisspell" - destination_repo: "git@github.com:getfem-doc/getfem.git" - destination_branch: "refs/heads/fixmisspell" - ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} - name: tag-sync uses: wei/git-sync@v2 with: From a080ba767f17bf9a72d3d1edef19b9d0a7dea5f6 Mon Sep 17 00:00:00 2001 From: Tetsuo Koyama Date: Thu, 23 Nov 2023 18:17:37 +0900 Subject: [PATCH 4/4] Update main.yml --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2162e02..41a4741 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,6 +38,11 @@ jobs: with: host: github.com private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.PERSONAL_ACCESSTOKEN }} - name: git_config env: NAME: "getfem-auto-update" @@ -46,11 +51,6 @@ jobs: git branch -a git config --global user.email $EMAIL git config --global user.name $NAME - - name: checkout with submodule - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.PERSONAL_ACCESSTOKEN }} - name: commit if: contains(github.event.head_commit.message, '[ci skip]') == false && contains(github.ref, 'master') env: