From 3863929034a8d702cb0f96eec196be40abdd5cdd Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Wed, 21 Aug 2024 17:26:03 +0530 Subject: [PATCH 1/9] Try Partial Update --- .github/workflows/satis-build-on-webhook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/satis-build-on-webhook.yml b/.github/workflows/satis-build-on-webhook.yml index 6de1b607..09c76556 100644 --- a/.github/workflows/satis-build-on-webhook.yml +++ b/.github/workflows/satis-build-on-webhook.yml @@ -60,7 +60,7 @@ jobs: path: ./dist - name: Run Build - run: composer run build + run: php -dmemory_limit=-1 vendor/bin/satis --repository-url ${{ format('git@github.com:{0}/{1}.git/', github.event.client_payload.vendor, github.event.client_payload.package) }} build ./satis.json ./dist - name: List files run: ls -lah ./dist From cddb2e108dd5d75fd796aa8ba23ca22038e64907 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Wed, 21 Aug 2024 17:30:05 +0530 Subject: [PATCH 2/9] Remove Stuff to not trigger things --- .github/workflows/satis-build-on-webhook.yml | 35 -------------------- 1 file changed, 35 deletions(-) diff --git a/.github/workflows/satis-build-on-webhook.yml b/.github/workflows/satis-build-on-webhook.yml index 09c76556..abe43ac0 100644 --- a/.github/workflows/satis-build-on-webhook.yml +++ b/.github/workflows/satis-build-on-webhook.yml @@ -64,38 +64,3 @@ jobs: - name: List files run: ls -lah ./dist - - - name: Commit web files - run: | - cd ./dist - git config --local user.name "Newfold WordPress Team" - git config --local user.email "wordpress-coe@newfold.com" - git remote -v - git add -A - git commit -m "Satis build triggered by release $VERSION of $VENDOR/$PACKAGE" - git status - cd - - - - name: Push changes - uses: ad-m/github-push-action@v0.8.0 - with: - branch: gh-pages - directory: ./dist - github_token: ${{ secrets.GITHUB_TOKEN }} - - - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 - with: - event-type: 'package-released' - client-payload: >- - { - "vendor": "$VENDOR", - "package": "$PACKAGE", - "version": "$VENDOR" - } - - - name: Send message to ms teams - uses: dhollerbach/actions.send-message-to-ms-teams@1.0.10 - with: - webhook: '${{ secrets.INCOMING_WEBHOOK_URL }}' - message: "Release ${{ github.event.client_payload.version }} of ${{ github.event.client_payload.vendor }}/${{ github.event.client_payload.package }} on satis is complete!\nVisit https://newfold-labs.github.io/satis/" From 5bc6cf2ded23f029fc8f5dd4f9de85c41f422c5c Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Thu, 22 Aug 2024 12:17:14 +0530 Subject: [PATCH 3/9] Update satis-build-on-webhook.yml --- .github/workflows/satis-build-on-webhook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/satis-build-on-webhook.yml b/.github/workflows/satis-build-on-webhook.yml index abe43ac0..5864f1b8 100644 --- a/.github/workflows/satis-build-on-webhook.yml +++ b/.github/workflows/satis-build-on-webhook.yml @@ -60,7 +60,7 @@ jobs: path: ./dist - name: Run Build - run: php -dmemory_limit=-1 vendor/bin/satis --repository-url ${{ format('git@github.com:{0}/{1}.git/', github.event.client_payload.vendor, github.event.client_payload.package) }} build ./satis.json ./dist + run: php -dmemory_limit=-1 vendor/bin/satis --repository-url ${{ format('git@github.com:{0}/{1}.git', github.event.client_payload.vendor, github.event.client_payload.package) }} build ./satis.json ./dist - name: List files run: ls -lah ./dist From b13db221a3161f0cdf79815e374308fd20d342b7 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Thu, 22 Aug 2024 18:14:22 +0530 Subject: [PATCH 4/9] Update satis-build-on-webhook.yml --- .github/workflows/satis-build-on-webhook.yml | 35 ++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/satis-build-on-webhook.yml b/.github/workflows/satis-build-on-webhook.yml index 5864f1b8..8787e01d 100644 --- a/.github/workflows/satis-build-on-webhook.yml +++ b/.github/workflows/satis-build-on-webhook.yml @@ -64,3 +64,38 @@ jobs: - name: List files run: ls -lah ./dist + + - name: Commit web files + run: | + cd ./dist + git config --local user.name "Newfold WordPress Team" + git config --local user.email "wordpress-coe@newfold.com" + git remote -v + git add -A + git commit -m "Satis build triggered by release $VERSION of $VENDOR/$PACKAGE" + git status + cd - + + - name: Push changes + uses: ad-m/github-push-action@v0.8.0 + with: + branch: gh-pages + directory: ./dist + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v2 + with: + event-type: 'package-released' + client-payload: >- + { + "vendor": "$VENDOR", + "package": "$PACKAGE", + "version": "$VENDOR" + } + + - name: Send message to ms teams + uses: dhollerbach/actions.send-message-to-ms-teams@1.0.10 + with: + webhook: '${{ secrets.INCOMING_WEBHOOK_URL }}' + message: "Release ${{ github.event.client_payload.version }} of ${{ github.event.client_payload.vendor }}/${{ github.event.client_payload.package }} on satis is complete!\nVisit https://newfold-labs.github.io/satis/" From f3ebf53ea8add14b33e04dc1332672804ff8a3ed Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Fri, 23 Aug 2024 14:02:34 +0530 Subject: [PATCH 5/9] Update satis-build-on-webhook.yml --- .github/workflows/satis-build-on-webhook.yml | 41 +++----------------- 1 file changed, 5 insertions(+), 36 deletions(-) diff --git a/.github/workflows/satis-build-on-webhook.yml b/.github/workflows/satis-build-on-webhook.yml index 8787e01d..dcffe90f 100644 --- a/.github/workflows/satis-build-on-webhook.yml +++ b/.github/workflows/satis-build-on-webhook.yml @@ -5,6 +5,10 @@ on: types: - 'satis-build' workflow_dispatch: + inputs: + vendor: + description: 'Vendor Name' + required: true concurrency: group: ${{ github.repository }}-build @@ -60,42 +64,7 @@ jobs: path: ./dist - name: Run Build - run: php -dmemory_limit=-1 vendor/bin/satis --repository-url ${{ format('git@github.com:{0}/{1}.git', github.event.client_payload.vendor, github.event.client_payload.package) }} build ./satis.json ./dist + run: php -dmemory_limit=-1 vendor/bin/satis --repository-url ${{ format('git@github.com:{0}/{1}.git', github.event.inputs.vendor, github.event.client_payload.package) }} build ./satis.json ./dist - name: List files run: ls -lah ./dist - - - name: Commit web files - run: | - cd ./dist - git config --local user.name "Newfold WordPress Team" - git config --local user.email "wordpress-coe@newfold.com" - git remote -v - git add -A - git commit -m "Satis build triggered by release $VERSION of $VENDOR/$PACKAGE" - git status - cd - - - - name: Push changes - uses: ad-m/github-push-action@v0.8.0 - with: - branch: gh-pages - directory: ./dist - github_token: ${{ secrets.GITHUB_TOKEN }} - - - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 - with: - event-type: 'package-released' - client-payload: >- - { - "vendor": "$VENDOR", - "package": "$PACKAGE", - "version": "$VENDOR" - } - - - name: Send message to ms teams - uses: dhollerbach/actions.send-message-to-ms-teams@1.0.10 - with: - webhook: '${{ secrets.INCOMING_WEBHOOK_URL }}' - message: "Release ${{ github.event.client_payload.version }} of ${{ github.event.client_payload.vendor }}/${{ github.event.client_payload.package }} on satis is complete!\nVisit https://newfold-labs.github.io/satis/" From 28331712e672ef7fcd4779de24b4a9d3a32d329c Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Fri, 23 Aug 2024 14:04:23 +0530 Subject: [PATCH 6/9] Update satis-build-on-webhook.yml --- .github/workflows/satis-build-on-webhook.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/satis-build-on-webhook.yml b/.github/workflows/satis-build-on-webhook.yml index dcffe90f..a6a79c6c 100644 --- a/.github/workflows/satis-build-on-webhook.yml +++ b/.github/workflows/satis-build-on-webhook.yml @@ -9,6 +9,9 @@ on: vendor: description: 'Vendor Name' required: true + package: + description: 'Package Name' + required: true concurrency: group: ${{ github.repository }}-build @@ -64,7 +67,7 @@ jobs: path: ./dist - name: Run Build - run: php -dmemory_limit=-1 vendor/bin/satis --repository-url ${{ format('git@github.com:{0}/{1}.git', github.event.inputs.vendor, github.event.client_payload.package) }} build ./satis.json ./dist + run: php -dmemory_limit=-1 vendor/bin/satis --repository-url ${{ format('git@github.com:{0}/{1}.git', github.event.inputs.vendor, github.event.inputs.package) }} build ./satis.json ./dist - name: List files run: ls -lah ./dist From 36b6cbf0a7abdb086ad133d58d6c0802b389daf7 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Fri, 23 Aug 2024 14:12:09 +0530 Subject: [PATCH 7/9] Update satis-build-on-webhook.yml --- .github/workflows/satis-build-on-webhook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/satis-build-on-webhook.yml b/.github/workflows/satis-build-on-webhook.yml index a6a79c6c..d88ea265 100644 --- a/.github/workflows/satis-build-on-webhook.yml +++ b/.github/workflows/satis-build-on-webhook.yml @@ -67,7 +67,7 @@ jobs: path: ./dist - name: Run Build - run: php -dmemory_limit=-1 vendor/bin/satis --repository-url ${{ format('git@github.com:{0}/{1}.git', github.event.inputs.vendor, github.event.inputs.package) }} build ./satis.json ./dist + run: php -dmemory_limit=-1 vendor/bin/satis build --repository-url ${{ format('git@github.com:{0}/{1}.git', github.event.inputs.vendor, github.event.inputs.package) }} ./satis.json ./dist - name: List files run: ls -lah ./dist From c8e34e4699b576c4add70494c864388b28197719 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Fri, 23 Aug 2024 14:17:00 +0530 Subject: [PATCH 8/9] Fix --- .github/workflows/satis-build-on-webhook.yml | 41 ++++++++++++++++++-- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/.github/workflows/satis-build-on-webhook.yml b/.github/workflows/satis-build-on-webhook.yml index d88ea265..10b5a8c0 100644 --- a/.github/workflows/satis-build-on-webhook.yml +++ b/.github/workflows/satis-build-on-webhook.yml @@ -8,10 +8,10 @@ on: inputs: vendor: description: 'Vendor Name' - required: true + required: false package: description: 'Package Name' - required: true + required: false concurrency: group: ${{ github.repository }}-build @@ -67,7 +67,42 @@ jobs: path: ./dist - name: Run Build - run: php -dmemory_limit=-1 vendor/bin/satis build --repository-url ${{ format('git@github.com:{0}/{1}.git', github.event.inputs.vendor, github.event.inputs.package) }} ./satis.json ./dist + run: php -dmemory_limit=-1 vendor/bin/satis build --repository-url ${{ format('git@github.com:{0}/{1}.git', github.event.client_payload.vendor, github.event.client_payload.package) }} ./satis.json ./dist - name: List files run: ls -lah ./dist + + - name: Commit web files + run: | + cd ./dist + git config --local user.name "Newfold WordPress Team" + git config --local user.email "wordpress-coe@newfold.com" + git remote -v + git add -A + git commit -m "Satis build triggered by release $VERSION of $VENDOR/$PACKAGE" + git status + cd - + + - name: Push changes + uses: ad-m/github-push-action@v0.8.0 + with: + branch: gh-pages + directory: ./dist + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v2 + with: + event-type: 'package-released' + client-payload: >- + { + "vendor": "$VENDOR", + "package": "$PACKAGE", + "version": "$VENDOR" + } + + - name: Send message to ms teams + uses: dhollerbach/actions.send-message-to-ms-teams@1.0.10 + with: + webhook: '${{ secrets.INCOMING_WEBHOOK_URL }}' + message: "Release ${{ github.event.client_payload.version }} of ${{ github.event.client_payload.vendor }}/${{ github.event.client_payload.package }} on satis is complete!\nVisit https://newfold-labs.github.io/satis/" From e12024da94d2b876bba39321718262bc68b65065 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Fri, 23 Aug 2024 14:17:22 +0530 Subject: [PATCH 9/9] Update satis-build-on-webhook.yml --- .github/workflows/satis-build-on-webhook.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/satis-build-on-webhook.yml b/.github/workflows/satis-build-on-webhook.yml index 10b5a8c0..7e9c03c1 100644 --- a/.github/workflows/satis-build-on-webhook.yml +++ b/.github/workflows/satis-build-on-webhook.yml @@ -5,13 +5,6 @@ on: types: - 'satis-build' workflow_dispatch: - inputs: - vendor: - description: 'Vendor Name' - required: false - package: - description: 'Package Name' - required: false concurrency: group: ${{ github.repository }}-build