Skip to content

varun-charan/pyaction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyAction

Python-based CLI tool


Build Status Latest Release Release Date GitHub issues Open Pull Requests

Usage

jobs:
  exec_command:
    runs-on: ubuntu-latest
    steps:
    - name: Test pyaction with exec devops cli command
      uses: varun-charan/pyaction@v0.3.0
      with:
        index_url_pip: ${{ secrets.INDEX_URL_PIP }}
        command: "exec"
        args: "python3 --version"

  non_exec_command:
    runs-on: ubuntu-latest
    steps: 
    - name: Test pyaction with non-exec devops cli command
      uses: varun-charan/pyaction@v0.3.0
      with:
        index_url_pip: ${{ secrets.INDEX_URL_PIP }}
        command: "cheeseshop"
        subcommand: "server-up"
        args: "-t devops"
        
  non_exec_command_output:
    runs-on: ubuntu-latest
    outputs:
      stdout: ${{ steps.pyaction_capture_cmd_output.outputs.stdout }}
    steps:
    - name: Test pyaction with non-exec devops cli command
      id: pyaction_capture_cmd_output
      uses: varun-charan/pyaction@v0.4.0
      env:
        VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
        VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
      with:
        index_url_pip: ${{ secrets.INDEX_URL_PIP }}
        export_list: "VAULT_ADDR=${{ env.VAULT_ADDR }}, VAULT_TOKEN=${{ env.VAULT_TOKEN }}"
        command: "vault"
        subcommand: "get"
        args: "prd/devops/newreleases automation_api_key"

Development

  • All source code is kept under src/devops folder.
  • Workflow to create the latest package version and push it to private Python index: .github/workflows/build-publish.yaml.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors