Skip to content

ci: Fix lint-daggerized.yml error - #5244

Merged
sipsma merged 1 commit into
dagger:mainfrom
wingyplus:daggerized-failure
Jun 13, 2023
Merged

sipsma merged 1 commit into
dagger:mainfrom
wingyplus:daggerized-failure

Conversation

@wingyplus

@wingyplus wingyplus commented Jun 1, 2023 •

Copy link
Copy Markdown
Contributor

Found from
https://github.com/dagger/dagger/actions/runs/5147441125. The uses
must have ./ to point to local action. And fixes 2 issues in the
workflow:

First, fix the daggerized job to use ${{ github.ref }} instead of
${{ github.sha }} when setting DAGGER_PROJECT because when using
sha, the dagger didn't know the sha commit when sending a Pull Request
from another repo.

Second, fix the dagger do argument and passing --repo and --branch
to the project.

@wingyplus wingyplus mentioned this pull request Jun 1, 2023
8 tasks done
@wingyplus
wingyplus force-pushed the daggerized-failure branch from 41c9b56 to a58c594 Compare June 1, 2023 17:51
@wingyplus

Copy link
Copy Markdown
Contributor Author

The workflow is now working but still a failure for some reason.

@wingyplus
wingyplus force-pushed the daggerized-failure branch from 2992e59 to a58c594 Compare June 1, 2023 18:02
@gerhard

gerhard commented Jun 1, 2023

Copy link
Copy Markdown
Contributor

No worries, will review & merge when the check is passing.

@wingyplus
wingyplus force-pushed the daggerized-failure branch from a58c594 to cf09445 Compare June 13, 2023 15:55
Found from
https://github.com/dagger/dagger/actions/runs/5147441125. The `uses`
must have `./` to point to local action. And fixes 2 issues in the
workflow:

First, fix the daggerized job to use `${{ github.ref }}` instead of
`${{ github.sha }}` when setting `DAGGER_PROJECT` because when using
sha, the dagger didn't know the sha commit when sending a Pull Request
from another repo.

Second, fix the `dagger do` argument and passing `--repo` and `--branch`
to the project.

Signed-off-by: Thanabodee Charoenpiriyakij <[email protected]>
@wingyplus
wingyplus force-pushed the daggerized-failure branch from 6d863b7 to 32634f5 Compare June 13, 2023 17:17

@sipsma sipsma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for the fix here! For more context, this workflow is just my early experiment to switch all our CI to run w/ dagger entrypoints, but I missed in my original PR that it wasn't even running 🤦‍♂️. Appreciate you finding the problem with uses, I had no idea that was the syntax needed!

@sipsma
sipsma merged commit 40507d3 into dagger:main Jun 13, 2023
@wingyplus
wingyplus deleted the daggerized-failure branch June 14, 2023 00:10
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

Successfully merging this pull request may close these issues.

3 participants