actions / delete-package-versions

MIT License
350 stars 86 forks source link

Error: Invalid input combination after upgrade to v5 #187

Open santiagonieto opened 7 months ago

santiagonieto commented 7 months ago
  - name: Get Maven Packages Version Ids for current Version
    uses: castlabs/get-package-version-id-action@v2.2
    id: versions
    with:
      token: ${{ secrets.MAVEN_REPO_TOKEN }}
      version: "${{ env.POM_VERSION }}-SNAPSHOT"

  - name: Delete Current Maven Packages Version with previous Package-Version-Ids
    uses: actions/delete-package-versions@v5
    if: ${{ steps.versions.outputs.ids != '' }}
    with:
      token: ${{ secrets.MAVEN_REPO_TOKEN }}
      package-version-ids: "${{ steps.versions.outputs.ids }}"

Action debug LOG:

Run actions/delete-package-versions@v5 with: token: *** package-version-ids: PV_lADOHh8Iqs4AGDvZzgH6v3c,PV_lADOHh8Iqs4AFtWbzgH6v1g,PV_lADOHh8Iqs4AFtWQzgH6v1o,PV_lADOHh8Iqs4AFtS_zgH6v3Q,PV_lADOHh8Iqs4AFtS-zgH6v3E,PV_lADOHh8Iqs4AFtS9zgH6v28,PV_lADOHh8Iqs4AFtS8zgH6v2s,PV_lADOHh8Iqs4AFtS6zgH6v2c,PV_lADOHh8Iqs4AFtS5zgH6v2E,PV_lADOHh8Iqs4AFtSuzgH6v1w num-old-versions-to-delete: 1 min-versions-to-keep: -1 ignore-versions: ^$ delete-only-pre-release-versions: false delete-only-untagged-versions: false env: JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64 JAVA_HOME_11_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64 POM_VERSION: 6.4.6 Error: Invalid input combination

santiagonieto commented 7 months ago

This works in v3

santiagonieto commented 7 months ago

I miss package-type mandatory param

santiagonieto commented 7 months ago

It doesn't works...

Run actions/delete-package-versions@v5 with: token: *** package-version-ids: PV_lADOHh8Iqs4AGDvZzgH6v3c,PV_lADOHh8Iqs4AFtWbzgH6v1g,PV_lADOHh8Iqs4AFtWQzgH6v1o,PV_lADOHh8Iqs4AFtS_zgH6v3Q,PV_lADOHh8Iqs4AFtS-zgH6v3E,PV_lADOHh8Iqs4AFtS9zgH6v28,PV_lADOHh8Iqs4AFtS8zgH6v2s,PV_lADOHh8Iqs4AFtS6zgH6v2c,PV_lADOHh8Iqs4AFtS5zgH6v2E,PV_lADOHh8Iqs4AFtSuzgH6v1w package-type: maven num-old-versions-to-delete: 1 min-versions-to-keep: -1 ignore-versions: ^$ delete-only-pre-release-versions: false delete-only-untagged-versions: false env: JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64 JAVA_HOME_11_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64 POM_VERSION: 6.4.6

santiagonieto commented 7 months ago

I have detected package-name is required now Could you revert to optional when execute with package-version-ids?