Notify on build failure
Some checks failed
Build and deploy / Build container and manifests (push) Failing after 27s
Some checks failed
Build and deploy / Build container and manifests (push) Failing after 27s
This commit is contained in:
parent
8a07d661ce
commit
a8cb7a2a17
|
@ -20,6 +20,7 @@ jobs:
|
||||||
|
|
||||||
- name: Set timestamp and release version
|
- name: Set timestamp and release version
|
||||||
run: |
|
run: |
|
||||||
|
bgbcvdc
|
||||||
echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
|
echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
|
||||||
git fetch --prune --unshallow --tags --force
|
git fetch --prune --unshallow --tags --force
|
||||||
echo "RELEASE_VERSION=$(git describe --always --dirty='--modified')" >> $GITHUB_ENV
|
echo "RELEASE_VERSION=$(git describe --always --dirty='--modified')" >> $GITHUB_ENV
|
||||||
|
@ -91,3 +92,15 @@ jobs:
|
||||||
|
|
||||||
flux tag artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \
|
flux tag artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \
|
||||||
$(echo "${{ steps.meta.outputs.tags }}" | sed -e 's/^.*:/--tag /')
|
$(echo "${{ steps.meta.outputs.tags }}" | sed -e 's/^.*:/--tag /')
|
||||||
|
|
||||||
|
- name: Notify build status
|
||||||
|
if: failure()
|
||||||
|
uses: appleboy/telegram-action@master
|
||||||
|
with:
|
||||||
|
to: ${{ secrets.TELEGRAM_TO }}
|
||||||
|
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
|
message: |
|
||||||
|
🚨 *BUILD FAILED!*
|
||||||
|
|
||||||
|
${{ gitea.repository } [${{ gitea.ref }} @ ${{ gitea.sha }}] (#${{ gitea.run_rumber }})
|
||||||
|
> ${{ gitea.event.head_commit.message }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user