You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by mb...@apache.org on 2026/06/02 12:14:32 UTC

(netbeans) branch revert-9286-ci-replace-delete-artifact-action created (now 0393c6ed876)

This is an automated email from the ASF dual-hosted git repository.

mbien pushed a change to branch revert-9286-ci-replace-delete-artifact-action
in repository https://gitbox.apache.org/repos/asf/netbeans.git


      at 0393c6ed876 Revert "Replace delete-artifact action with REST api calls using gh CLI"

This branch includes the following new commits:

     new 0393c6ed876 Revert "Replace delete-artifact action with REST api calls using gh CLI"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


(netbeans) 01/01: Revert "Replace delete-artifact action with REST api calls using gh CLI"

Posted by mb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mbien pushed a commit to branch revert-9286-ci-replace-delete-artifact-action
in repository https://gitbox.apache.org/repos/asf/netbeans.git

commit 0393c6ed8761d30db82fed1c8bae8e8c63652df8
Author: Michael Bien <mb...@gmail.com>
AuthorDate: Tue Jun 2 14:14:21 2026 +0200

    Revert "Replace delete-artifact action with REST api calls using gh CLI"
---
 .github/workflows/main.yml | 27 ++++++++-------------------
 1 file changed, 8 insertions(+), 19 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 78376eb180e..20f93223b50 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -2575,30 +2575,19 @@ jobs:
     #  * nothing else failed (allows manual restarts)
     #  * the workflow got cancelled
     if: ${{ always() && needs.base-build.result == 'success' && (!contains(needs.*.result, 'failure') || cancelled()) }}
-    permissions:
-      actions: write
     runs-on: ubuntu-latest
     timeout-minutes: 60
     steps:
 
       - name: Delete Workspace Artifact
-        run: |
-          ARTIFACT_ID=$(gh api /repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts --jq ".artifacts[] | select(.name == \"${NAME}\") | .id")
-          echo ${ARTIFACT_ID}
-          if [ -n "$ARTIFACT_ID" ]; then
-            gh api /repos/${GITHUB_REPOSITORY}/actions/artifacts/${ARTIFACT_ID} -X DELETE
-          fi
-        env:
-          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          NAME: build.tar.zst
+        uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5.1.0
+        with:
+          name: build.tar.zst 
+          useGlob: false
 
       - name: Delete Dev Build Artifact
+        uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5.1.0
         if: ${{ contains(github.event.pull_request.labels.*.name, 'ci:dev-build') && cancelled() }}
-        run: |
-          ARTIFACT_ID=$(gh api /repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts --jq ".artifacts[] | select(.name == \"${NAME}\") | .id")
-          if [ -n "$ARTIFACT_ID" ]; then
-            gh api /repos/${GITHUB_REPOSITORY}/actions/artifacts/${ARTIFACT_ID} -X DELETE
-          fi
-        env:
-          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          NAME: dev-build_${{github.event.pull_request.number || github.run_id}}.zip
+        with:
+          name: dev-build_${{github.event.pull_request.number || github.run_id}}.zip
+          useGlob: false


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists