Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/gh_comment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ fi
comment_url=https://api.github.com/repos/ProcessMaker/$project/issues/$pull_id/comments

curl $comment_url \
-s -H "Authorization: token $GITHUB_TOKEN" \
-s -H "Authorization: token $GIT_TOKEN" \
-X POST -d "{\"body\": \"QA server K8S was successfully deployed $INSTANCE_URL\"}"
10 changes: 5 additions & 5 deletions .github/workflows/deploy-pm4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
GH_USER: ${{ secrets.GH_USER }}
GH_EMAIL: ${{ secrets.GH_EMAIL }}
DOM_EKS: ${{ secrets.DOM_EKS }}
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
BUILD_BASE: ${{ (contains(github.event.pull_request.body, 'ci:build-base') || github.event_name == 'schedule') && '1' || '0' }}
MULTITENANCY: ${{ (contains(github.event.pull_request.body, 'ci:multitenancy')) && 'true' || 'false' }}
BASE_IMAGE: ${{ secrets.REGISTRY_HOST }}/processmaker/processmaker:base
Expand Down Expand Up @@ -258,7 +258,7 @@ jobs:
done
# Send the content of /tmp/comment.md as a PR comment
MESSAGE=$(cat /tmp/comment.md)
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
GIT_TOKEN=${{ secrets.GIT_TOKEN }}
GITHUB_REPOSITORY=${{ github.repository }}
PR_NUMBER=$(jq -r .number < "$GITHUB_EVENT_PATH")

Expand All @@ -271,7 +271,7 @@ jobs:
json_payload=$(jq -n --arg message "$MESSAGE" '{"body": $message}')

curl -s \
-H "Authorization: token ${GITHUB_TOKEN}" \
-H "Authorization: token ${GIT_TOKEN}" \
-H "Accept: application/vnd.github.v3+json" \
-d "$json_payload" \
"${URL}"
Expand Down Expand Up @@ -340,7 +340,7 @@ jobs:
# - name: Clone repo K8S
# run: |
# echo "IMAGE: ${{ env.IMAGE }}"
# git clone --depth 1 -b "$K8S_BRANCH" "https://$GITHUB_TOKEN@github.com/ProcessMaker/pm4-k8s-distribution.git" pm4-k8s-distribution
# git clone --depth 1 -b "$K8S_BRANCH" "https://$GIT_TOKEN@github.com/ProcessMaker/pm4-k8s-distribution.git" pm4-k8s-distribution

- name: Login to Harbor
uses: docker/login-action@v2
Expand Down Expand Up @@ -369,7 +369,7 @@ jobs:
- name: SonarQube Coverage Report
uses: sonarsource/sonarqube-scan-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
Expand Down
Loading