fix(workflow): only attempt to comment on the commit if it is a pull request
This commit is contained in:
parent
1b9bed700f
commit
49d3b9ba0c
1 changed files with 1 additions and 2 deletions
|
@ -49,6 +49,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${{ github.base_ref }}" ]; then
|
if [ -n "${{ github.base_ref }}" ]; then
|
||||||
release="$(basename "{{ github.base_ref }}")"
|
release="$(basename "{{ github.base_ref }}")"
|
||||||
|
export GITEA_TOKEN = ${{ secrets.COASTALCOMMITSTOKEN }}
|
||||||
else
|
else
|
||||||
release="$(basename "${{ github.ref }}")"
|
release="$(basename "${{ github.ref }}")"
|
||||||
fi
|
fi
|
||||||
|
@ -63,8 +64,6 @@ jobs:
|
||||||
--branch "$release"
|
--branch "$release"
|
||||||
|
|
||||||
echo "Deployed to Meli on branch $release"
|
echo "Deployed to Meli on branch $release"
|
||||||
env:
|
|
||||||
GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }}
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Analysing the code with Pylint
|
- name: Analysing the code with Pylint
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue