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

"vchrisb/setup-cf@v1" showing error in deploy-to-prd.yml File #9

Open
upndown4par522 opened this issue Jan 10, 2025 · 3 comments
Open

Comments

@upndown4par522
Copy link

Starting a couple of days ago, in my deploy-do-prd.yml file, I have this code:

  • name: Set up CF
    uses: vchrisb/setup-cf@v1
    with:
    api: ${{ secrets.CF_API }}
    username: ${{ secrets.CF_USERNAME }}
    password: ${{ secrets.CF_PASSWORD }}
    org: dev-learning-trial
    space: I869223

vchrisb/setup-cf@v1 is showing this error in vs code: Unable to resolve action vchrisb/setup-cf@v1, repository or version not found

Any ideas and/or suggestions would be greatly appreciated.

@vchrisb
Copy link
Owner

vchrisb commented Jan 17, 2025

@upndown4par522
Copy link
Author

Hi Chris,

Thank you for your response. I downloaded the source code, saved it to a folder on my computer and opened it with VS Code.

I'm so new at this that I'm not sure what to do with it. Do I need to push it to GitHub? If so, what repository and branch?

I'm using the SAP Enterprise version of GitHub.

Sorry for the newbie questions but that's how green I am with this type of development. LOL

Any suggestions and/or recommendations you could make would be fantastic.

Thanks again!

Ron

@vchrisb
Copy link
Owner

vchrisb commented Jan 22, 2025

The action will be pulled automatically when you are using it in your workflow.
You need to add a step like:

steps:
- uses: actions/checkout@v4
- uses: vchrisb/setup-cf@v1
  with:
    api: ${{ secrets.CF_API }}
    username: ${{ secrets.CF_USERNAME }}
    password: ${{ secrets.CF_PASSWORD }}
    org: test
    space: dev
- name: run cf command
  run: cf apps

Some more general information on writing Github workflows: https://docs.github.com/en/actions/writing-workflows/quickstart

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

2 participants