From 49d3b9ba0c878968ef19c72ee7ffb8a82a870944 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 02:10:50 +0000 Subject: [PATCH] fix(workflow): only attempt to comment on the commit if it is a pull request --- .forgejo/workflows/workflow.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index b595249..6ae998e 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -49,6 +49,7 @@ jobs: run: | if [ -n "${{ github.base_ref }}" ]; then release="$(basename "{{ github.base_ref }}")" + export GITEA_TOKEN = ${{ secrets.COASTALCOMMITSTOKEN }} else release="$(basename "${{ github.ref }}")" fi @@ -63,8 +64,6 @@ jobs: --branch "$release" echo "Deployed to Meli on branch $release" - env: - GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }} continue-on-error: true - name: Analysing the code with Pylint run: |