fix(workflow): only attempt to comment on the commit if it is a pull request

This commit is contained in:
Seaswimmer 2024-01-07 02:10:50 +00:00
parent 1b9bed700f
commit 49d3b9ba0c
Signed by untrusted user: cswimr
GPG key ID: D74DDDDF420E13DF

View file

@ -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: |