try using the gitea cli instead
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m15s
Build and deploy the backend to staging / Add a comment to the PR to notify about the deployment (pull_request) Failing after 25s
Run linting on the backend code / Build (pull_request) Successful in 4m7s
Run testing on the backend code / Build (pull_request) Has been cancelled
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m15s
Build and deploy the backend to staging / Add a comment to the PR to notify about the deployment (pull_request) Failing after 25s
Run linting on the backend code / Build (pull_request) Successful in 4m7s
Run testing on the backend code / Build (pull_request) Has been cancelled
This commit is contained in:
@@ -21,12 +21,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Add a comment to the PR to notify about the deployment
|
name: Add a comment to the PR to notify about the deployment
|
||||||
steps:
|
steps:
|
||||||
- name: Notify about deployment
|
- name: Download gitea client
|
||||||
uses: https://github.com/marocchino/sticky-pull-request-comment@v2
|
run: |
|
||||||
with:
|
curl -sSL -o tea https://dl.gitea.com/tea/0.11.0/tea-0.11.0-linux-amd64
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
chmod +x tea
|
||||||
header: backend deployed to production
|
- name: Post comment
|
||||||
message: |
|
run: |
|
||||||
The backend has been deployed to staging with url <https://pr-{{ github.event.number }}.anyway-stg.anydev.info>. Check the deployment status in ArgoCD:
|
./tea pr comment ${{ github.event.number }} --body "The backend has been deployed to staging with url https://pr-${{ github.event.number }}.anyway-stg.anydev.info. Check the deployment status in ArgoCD:
|
||||||
|
|
||||||
[](https://argocd.kluster.moll.re/applications/anydev-anyway-backend-stg-pr-{{ github.event.number }})
|
[](https://argocd.kluster.moll.re/applications/anydev-anyway-backend-stg-pr-${{ github.event.number }})"
|
||||||
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
GITEA_BASE_URL: ${{ secrets.GITEA_BASE_URL }}
|
||||||
|
GITEA_REPO: ${{ secrets.GITEA_REPO }}
|
||||||
|
Reference in New Issue
Block a user