Hopefully the final version.
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Check and Create PR (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Docker Compose Test (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Cloudflare DNS Setup (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / PR Merge (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Check and Create PR (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Docker Compose Test (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Cloudflare DNS Setup (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / PR Merge (push) Has been cancelled
This commit is contained in:
@@ -118,30 +118,11 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Send Gotify Notification
|
- name: Tea CLI Setup & PR Merge
|
||||||
uses: eikendev/gotify-action@0.0.3
|
run: |
|
||||||
with:
|
curl -sSL https://dl.gitea.com/tea/main/tea-main-linux-amd64 -o /usr/local/bin/tea
|
||||||
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
chmod +x /usr/local/bin/tea
|
||||||
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
echo "Merging PR..."
|
||||||
notification_title: '${{ github.ref_name }} ready to be merged.'
|
tea login add --name gitea-rinoa --url ${{ vars.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
|
||||||
notification_message: '${{ gitea.server_url }}/issues'
|
pr_index=$(tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state --output csv | egrep ${{ gitea.ref_name }} | awk -F, '{print $1}' | sed -e 's|"||g')
|
||||||
|
tea pr m --repo ${{ github.repository }} --title "Auto Merge of ${{ gitea.ref_name }}" --message "Merged by ${{ gitea.actor }}" --output table ${pr_index}
|
||||||
- name: Manual Approval
|
|
||||||
uses: macnev2013/manual-approval@v1.0.18
|
|
||||||
with:
|
|
||||||
secret: ${{ secrets.BOT_GITEA_TOKEN }}
|
|
||||||
approvers: Trez.One
|
|
||||||
minimum-approvals: 1
|
|
||||||
approval-wait: 600
|
|
||||||
issue-title: "Deployment of ${{ github.ref_name }}"
|
|
||||||
issue-body: "Autobots, roll out!"
|
|
||||||
|
|
||||||
# - name: Tea CLI Setup & PR Merge
|
|
||||||
# run: |
|
|
||||||
# curl -sSL https://dl.gitea.com/tea/main/tea-main-linux-amd64 -o /usr/local/bin/tea
|
|
||||||
# chmod +x /usr/local/bin/tea
|
|
||||||
# echo "Merging PR..."
|
|
||||||
# tea login add --name gitea-rinoa --url ${{ vars.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
|
|
||||||
# echo ${{ gitea.ref_name }}
|
|
||||||
# pr_index=$(tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state --output csv | egrep ${{ gitea.ref_name }} | awk -F, '{print $1}' | sed -e 's|"||g')
|
|
||||||
# tea pr m --repo ${{ github.repository }} --title "Auto Merge" --message "Merged by ${{ gitea.actor }}" --output table ${pr_index}
|
|
||||||
Reference in New Issue
Block a user