Re-adding trigger.

This commit is contained in:
2025-01-14 09:46:40 -05:00
parent dbab807837
commit 40da232294
+41 -42
View File
@@ -149,7 +149,6 @@ jobs:
- name: Regenerate README - name: Regenerate README
run: | run: |
echo "# List of Services" > README.md echo "# List of Services" > README.md
echo "___________________________________________" >> README.md
echo -e "\n\n" >> README.md echo -e "\n\n" >> README.md
echo "${{ steps.service-table.outputs.table }}" >> README.md echo "${{ steps.service-table.outputs.table }}" >> README.md
@@ -160,51 +159,51 @@ jobs:
message: "chore: Update README" message: "chore: Update README"
add: "README.md" add: "README.md"
# merge-and-trigger: trigger-and-merge:
# name: Merge PR & Trigger Deployment name: Merge PR & Trigger Deployment
# if: ${{ regenerate-readme.outputs.pr-pushed == 'true' }} if: ${{ regenerate-readme.outputs.pr-pushed == 'true' }}
# needs: [generate-readme, docker-compose-test, regenerate-readme] needs: [generate-readme, docker-compose-test, regenerate-readme]
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - name: Checkout - name: Checkout
# uses: actions/checkout@v4 uses: actions/checkout@v4
# - name: PR Merge - name: Gotify Notification
# id: pr_merge uses: eikendev/gotify-action@master
# run: | with:
# tea login add --name gitea-rinoa --url ${{ secrets.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }} gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
# tea login default gitea-rinoa gotify_app_token: '${{ secrets.RINOA_GOTIFY_TOKEN }}'
# 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') notification_title: 'Ready to Deploy'
# tea pr m --repo ${{ github.repository }} --title "Auto Merge of PR #${pr_index} - ${{ gitea.ref_name }}" --message "Merged by ${{ gitea.actor }}" --output table ${pr_index} notification_message: 'Ready to deploy: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }}'
# echo "pr_index=${pr_index}" >> $GITHUB_OUTPUT
# - name: Wait for PR to be merged - name: manual-trigger
# run: | id: manual-trigger
# while true; do uses: trstringer/manual-approval@v1.9.1
# pr_state=$(tea pr ls --repo ${{ github.repository }} --state merged --fields index,title,head,state --output csv | egrep ${{ github.ref_name }} | awk -F, '{print $4}' | sed -e 's|"||g') with:
# if [ "${pr_state}" == "merged" ]; then secret: ${{ secrets.BOT_GITEA_TOKEN }}
# break approvers: Trez.One
minimum-approvals: 1
issue-title: "Deploying ${{ github.ref_name }} (PR #{{ steps.pr_merge.outputs.pr_index }})"
issue-body: "Testing for now"
exclude-workflow-initiator-as-approver: false
additional-approved-words: ''
additional-denied-words: ''
# - name: Gotify Notification # - name: PR Merge
# uses: eikendev/gotify-action@master # id: pr_merge
# with: # run: |
# gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}' # tea login add --name gitea-rinoa --url ${{ secrets.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
# gotify_app_token: '${{ secrets.RINOA_GOTIFY_TOKEN }}' # tea login default gitea-rinoa
# notification_title: 'Ready to Deploy' # 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')
# notification_message: 'Ready to deploy: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }}' # tea pr m --repo ${{ github.repository }} --title "Auto Merge of PR #${pr_index} - ${{ gitea.ref_name }}" --message "Merged by ${{ gitea.actor }}" --output table ${pr_index}
# echo "pr_index=${pr_index}" >> $GITHUB_OUTPUT
# - name: manual-trigger # - name: Wait for PR to be merged
# id: manual-trigger # run: |
# uses: trstringer/manual-approval@v1.9.1 # while true; do
# with: # pr_state=$(tea pr ls --repo ${{ github.repository }} --state merged --fields index,title,head,state --output csv | egrep ${{ github.ref_name }} | awk -F, '{print $4}' | sed -e 's|"||g')
# secret: ${{ secrets.BOT_GITEA_TOKEN }} # if [ "${pr_state}" == "merged" ]; then
# approvers: Trez.One # break
# minimum-approvals: 1
# issue-title: "Deploying ${{ github.ref_name }} (PR #{{ steps.pr_merge.outputs.pr_index }})"
# issue-body: "Testing for now"
# exclude-workflow-initiator-as-approver: false
# additional-approved-words: ''
# additional-denied-words: ''
# docker-compose-deploy: # docker-compose-deploy:
# name: Deploy via Docker Compose # name: Deploy via Docker Compose