jetify-com / devbox-install-action

31 stars 15 forks source link

Getting Error: Unable to resolve action. Repository not found: jetpack-io/devbox-install-action When trying to use jetify-com/devbox-install-action #43

Closed msdolbey closed 4 months ago

msdolbey commented 4 months ago

I've used both jetify-com/devbox-install-action@v0.8.0 and jetify-com/devbox-install-action@v0.9.0

in our github action workflow yaml, and both are failing to retrieve the repo, and instead I'm seeing this return:

Error: Unable to resolve action. Repository not found: jetpack-io/devbox-install-action
Lagoja commented 4 months ago

Hey @msdolbey, thanks for reporting. Investigating now

Lagoja commented 4 months ago

Hey @msdolbey, I can't reproduce this on our own repos. Is it possible the action is used in multiple places, or do you have some sort of caching in place for actions?

If you're ok sharing the full workflow yaml, I could also debug with the team some more

alim-banked commented 4 months ago

I also just ran into same issue as well

Getting action download info
Error: Unable to resolve action. Repository not found: jetpack-io/devbox-install-action
alim-banked commented 4 months ago

https://github.com/jetify-com/devbox-install-action/pull/42 seems like maybe because of this ^ change?

savil commented 4 months ago

A couple of clarifications: it seems we had to re-publish the releases (since Github didn't auto-migrate over the old github action). IIUC 0.9.0 was re-published.

The snippet below seems to be working for us (in our internal repos):

      - name: Install devbox
        uses: jetify-com/devbox-install-action@v0.9.0
        with:
          enable-cache: true

Could you share the yaml snippet that you have tried with that is failing?

alim-banked commented 4 months ago

Is 0.7.0 republished? This is what I have

uses: jetpack-io/devbox-install-action@v0.7.0
      with:
        enable-cache: 'true'
        refresh-cli: 'false'
        disable-nix-access-token: 'false'
        devbox-version: 0.7.0
savil commented 4 months ago

@alim-banked can you try changing to 0.9.0 please?

alim-banked commented 4 months ago

@savil : is it possible to keep the 0.7.0 release, it might requires some testings to roll out from 0.7.0 -> 0.9.0

savil commented 4 months ago

@alim-banked yeah, I'm going thru the older versions and hitting "publish" on them. 0.7.0 is now listed in Github Marketplace's versions https://github.com/marketplace/actions/devbox-installer.

LucilleH commented 4 months ago

@alim-banked you can do uses: jetify-com/devbox-install-action@v0.9.0 with devbox-version: 0.7.0. Those does not have to match. Unless you are saying you need the 0.7.0 action version (which we don't have a lot of changes from 0.7 to 0.9, so it should be relatively safe).

And thanks @savil for republishing the older versions

alim-banked commented 4 months ago

switching to uses: jetpack-io/devbox-install-action@v0.9.0 with devbox-version: 0.7.0 works great. Thanks!

LucilleH commented 4 months ago

@alim-banked sorry, should be jetify-com/devbox-install-action@v0.9.0. Or is jetpack-io/... also still working?

savil commented 4 months ago

@msdolbey can you let us know if it's working now for you? If not, could you share the exact yaml snippet you are trying with?

alim-banked commented 4 months ago

I switched to use jetify-com/devbox-install-action@v0.9.0

msdolbey commented 4 months ago

@savil - sorry for the delay - I signed offline - Here's what we're using (still failed this a.m.):

jobs:
  code-checks:
    ...
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          ...
      - uses: cachix/install-nix-action@v26
          ...
      - name: Install devbox
        uses: jetify-com/devbox-install-action@v0.9.0
        with:
          enable-cache: "true"
          skip-nix-installation: "true"
      - name: Run Setup
        run: devbox run -- npm run ci:setup
      - name: Git Status Changes
        run: devbox run -- ./scripts/ci/git-status-changes.sh

      - name: Lint ui-kit
        run: devbox run -- npm --prefix packages/ui-kit run lint
      - name: Unit Tests ui-kit
        run: devbox run -- npm --prefix packages/ui-kit run test
      - name: Build ui-kit
        run: devbox run -- npm --prefix packages/ui-kit run dist

      - name: Run Prettier
        run: devbox run -- npm run lint:prettier
      - name: Lint TypeScript
        run: devbox run -- npm run lint:ts
      - name: Test Types
        run: devbox run -- npm run test:types
      - name: Unit Tests
        run: devbox run -- npm run test:unit
      - name: Lint Chart
        run: devbox run -- ct lint --charts ...
msdolbey commented 4 months ago

Okay @savil @Lagoja Our issues are now resolved. Our GHA was still pulling from what was on main, and not what was on the feature branch with the fix. We're all good here. My issue is resolved.

ipince commented 4 months ago

Good to know, thank you! Closing the issue now.