Skip to content

Update main.yml

Update main.yml #5

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
name: password
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup cf cli
uses: vchrisb/[email protected]
with:
api: ${{ secrets.CF_API }}
username: ${{ secrets.CF_USERNAME }}
password: ${{ secrets.CF_PASSWORD }}
org: test
space: dev
command: push --strategy rolling --var GIT_SHA=${{ github.sha }}
- name: access cloud foundry api
run: cf apps