android-actions/setup-android

Deprecated GitHub actions usage

TWiStErRob opened this issue · 11 comments

Will be solved by #347, because you only use setOutput.

Thanks for bringing this up. Kind of an easy fix. Let's see if the warnings go away

Confirmed fixed! Re-ran the the job I quoted above on the same commit.

      - name: Set up Android SDK.
        uses: android-actions/setup-android@v2

Before:
https://github.com/TWiStErRob/glide-support/actions/runs/3275044365/jobs/5389377582#step:3:710
image

After:
https://github.com/TWiStErRob/glide-support/actions/runs/3275044365/jobs/5393688733#step:3:708
image

Thanks for the amazing turnaround.

No need to thank me, that warning would have turned into an error eventually. Now I need to find 20+ different places in other projects where I use set-output manually

Should I be surprised to still see this error on v2.0.2?
CleanShot 2023-02-22 at 17 07 03@2x

Weird the only usage is here:
https://github.com/android-actions/setup-android/blame/main/src/main.ts#L184
And that's still a valid usage, because the actions/core dependency is 1.10.0, bumped by #347

@ViliusSutkus89 is it possible you didn't do npm install at one point when you rebuild the dist?

@kyhule 2.0.2 is really old, the fix only exists in 2.0.10:
https://github.com/android-actions/setup-android/tags

@TWiStErRob Ah sorry about that. This is the first time using GitHub actions. I was using v2.0.2 because that is the version listed as the latest on the actions marketplace. I'll upgrade to v2.0.10 today!
Screenshot_20230223-080443.png

I recommend you just use @v2, then this is not a problem, you get free patches. @ViliusSutkus89 any idea what's missing for recent versions to show up at https://github.com/marketplace/actions/setup-android-sdk-tools?