Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid input combination after upgrade to v5 #187

Open
santiagonieto opened this issue Apr 12, 2024 · 4 comments
Open

Error: Invalid input combination after upgrade to v5 #187

santiagonieto opened this issue Apr 12, 2024 · 4 comments

Comments

@santiagonieto
Copy link

  - name: Get Maven Packages Version Ids for current Version
    uses: castlabs/[email protected]
    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
Copy link
Author

This works in v3

@santiagonieto
Copy link
Author

I miss package-type mandatory param

@santiagonieto
Copy link
Author

It doesn't works...

  • 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 }}"
    package-type: maven

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant