From 1576ac5d7396f6e78a700a678de7cb2d605f610c Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 12:33:10 +0000 Subject: [PATCH 1/5] fix(workflow): added env --- .forgejo/workflows/workflow.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index dd7d2e4..9e96705 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -14,6 +14,10 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Set Environment Variable + uses: actions/env@v2 + run: | + echo "BRANCH=$CI_ACTION_REF_NAME_SLUG" >> $GITHUB_ENV - name: Install dependencies run: | poetry install --with docs --with dev --no-root @@ -30,9 +34,12 @@ jobs: unset GITHUB_TOKEN unset GITLAB_TOKEN + + echo "branch = $branch" echo "github.ref = ${{ github.ref }}" echo "github.base_ref = ${{ github.base_ref }}" echo "github.ref_name = ${{ github.ref_name }}" + echo "(Basename) branch = $(basename "$branch") echo "(Basename) github.ref = $(basename "${{ github.ref }}")" echo "(Basename) github.base_ref = $(basename "${{ github.base_ref }}")" echo "(Basename) github.ref_name = $(basename "${{ github.ref_name }}")" From 909ad1748e00e0b7f534854d99d53172462b1e1e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 12:36:14 +0000 Subject: [PATCH 2/5] fix(workflow): ??? --- .forgejo/workflows/workflow.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index 9e96705..0aff8e4 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -14,17 +14,18 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Set Environment Variable uses: actions/env@v2 - run: | - echo "BRANCH=$CI_ACTION_REF_NAME_SLUG" >> $GITHUB_ENV + run: echo "BRANCH=$CI_ACTION_REF_NAME_SLUG" >> $GITHUB_ENV + - name: Install dependencies - run: | - poetry install --with docs --with dev --no-root + run: poetry install --with docs --with dev --no-root + - name: Build the documentation - run: | - mkdocs build + run: mkdocs build continue-on-error: true + - name: Deploy the documentation to Meli (CoastalCommits Pages) run: | GREEN='\033[0;32m' @@ -35,11 +36,11 @@ jobs: unset GITLAB_TOKEN - echo "branch = $branch" + echo "branch = ${{ branch }}" echo "github.ref = ${{ github.ref }}" echo "github.base_ref = ${{ github.base_ref }}" echo "github.ref_name = ${{ github.ref_name }}" - echo "(Basename) branch = $(basename "$branch") + echo "(Basename) branch = $(basename "${{ branch }}")" echo "(Basename) github.ref = $(basename "${{ github.ref }}")" echo "(Basename) github.base_ref = $(basename "${{ github.base_ref }}")" echo "(Basename) github.ref_name = $(basename "${{ github.ref_name }}")" @@ -63,6 +64,6 @@ jobs: env: GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }} continue-on-error: true + - name: Analysing the code with Pylint - run: | - pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py') + run: pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py') From 53747bbd1ecbae2e273b2c73ce09b2e1a17b2f1f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 12:36:43 +0000 Subject: [PATCH 3/5] fix(workflow): should be fixed now --- .forgejo/workflows/workflow.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index 0aff8e4..36a92d2 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 - name: Set Environment Variable - uses: actions/env@v2 + - uses: actions/env@v2 run: echo "BRANCH=$CI_ACTION_REF_NAME_SLUG" >> $GITHUB_ENV - name: Install dependencies From f1ca475003838df1d5b50bbfdb6dac22d7093a22 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 12:37:08 +0000 Subject: [PATCH 4/5] fix(workflow): hello?? --- .forgejo/workflows/workflow.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index 36a92d2..daf9f23 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -15,8 +15,8 @@ jobs: with: fetch-depth: 0 - - name: Set Environment Variable - uses: actions/env@v2 + - name: Set branch name run: echo "BRANCH=$CI_ACTION_REF_NAME_SLUG" >> $GITHUB_ENV - name: Install dependencies From 8bbe69d78f1a58cba9038a03eecc0798ec0bc233 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 12:37:52 +0000 Subject: [PATCH 5/5] fix(workflow): fixed echos --- .forgejo/workflows/workflow.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index daf9f23..8bc07a6 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -36,11 +36,11 @@ jobs: unset GITLAB_TOKEN - echo "branch = ${{ branch }}" + echo "branch = $branch" echo "github.ref = ${{ github.ref }}" echo "github.base_ref = ${{ github.base_ref }}" echo "github.ref_name = ${{ github.ref_name }}" - echo "(Basename) branch = $(basename "${{ branch }}")" + echo "(Basename) branch = $(basename "$branch")" echo "(Basename) github.ref = $(basename "${{ github.ref }}")" echo "(Basename) github.base_ref = $(basename "${{ github.base_ref }}")" echo "(Basename) github.ref_name = $(basename "${{ github.ref_name }}")"