Closed eygraber closed 5 months ago
@eygraber if this issue related to GitHub Actions please take a look on documentation
I guess you using example from this repository flows, like
- name: Danger
uses: danger/kotlin@master
with:
args: "--id DangerKotlinAction"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
At this moment I migrating to new docker and github action implementation
As Documentation says https://github.com/danger/kotlin?tab=readme-ov-file#github-actions you should use versioned action, and that make sense for stability in case if master branch have broken backward compatibility
So, just replace uses: danger/kotlin@master
with uses: danger/kotlin@1.2.0
Cheers, let me know if it help
I'm using it like this:
- name: Danger
uses: docker://ghcr.io/danger/danger-kotlin:1.3.0
with:
args: --failOnErrors --no-publish-check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@eygraber even better. 1.3.0 if it still in "Pre-Release"? As well, it always make sense to verify if docker package even exist https://github.com/orgs/danger/packages/container/package/danger-kotlin
My suggestion for now, rollback to 1.2.0 and use it until new release will be published. As well, docker calls will be slightly different with 1.3.0.
@eygraber does it help you? Can we close the issue?
Yes, I didn't realize it was a pre-release. I just got the email from GitHub about the release and tried updating.
@eygraber just in case I've published 1.3.0 release with new docker. But the way how it using now is slightly different. All refrected in new documentation (Main Readme). That not the best way to have Entry point
in lib dockers because it create some complexity it extending.
With 1.3.0 should be
- name: Danger
uses: docker://ghcr.io/danger/danger-kotlin:1.3.0
run: danger-kotlin ci --failOnErrors --no-publish-check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Cheers, K
GitHub Actions doesn't allow uses
and run
in the same step. It fails the whole workflow.