Skip to content

botcity-dev/botcity-action-bots

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

License Release Slack Slack Slack

AboutUsageSupport

📚 About

This action makes automatic updates, deploys and releases to maestro, without the need for manual implementations.

It is possible to push an update to a specific branch or always upload a new version when a release is released in the project, it gives creativity and necessity.

💻 Usage

name: Botcity Action
on: push

jobs:
  BotCity:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@master
        with:
          fetch-depth: 0
      - name: BotCity Action
        uses: botcity-dev/[email protected]
        with:
          update: true
          deploy: false
          release: false
          version: 'v1.0'
          botId: 'botcityAction'
          technology: 'python'
          botPath: './bot.zip'
        env:
          LOGIN: ${{ secrets.LOGIN }}
          SERVER: ${{ secrets.SERVER }}
          KEY: ${{ secrets.KEY }}

🔣 Inputs

Input Description Default
technology Technology used in the Bot. (Python, Java, Javascript, Typescript or Command. Required
botPath Compressed file path. (zip or tar.gz) Required
update Run update in Maestro. false
deploy Execute deploy in Maestro. false
release Release version to bot in Maestro false
version Version of the action to run. If version is not set, the latest version is used in update. It is necessary to pass the version when performing deploy and release. None
repositoryLabel This is the repository used at BotCity Orchestrator. Only use in Deploy. DEFAULT

⛑ Support

📢 Join the community

If you have questions or comments in general about the plugin, we want to know.

You can choose between the channels the one that best fit you:

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests. Developing

Local Development

Ready to contribute with code submissions and pull requests (PRs)? Here's how to set up BotCity action for local development.

  1. Fork the repo
  2. Clone the fork botcity-action repo locally
git clone [email protected]:botcity-dev/botcity-action.git
  1. Create a branch for local development:
git checkout -b <name-of-your-branch>
  1. Run command in source:
make dev
  1. Verify changes locally run tests and linters:
make test
make format-code
make lint
  1. Now you can make your changes locally.
git add .
git commit -m "Description of the changes goes here"
git push --set-upstream origin <name-of-your-branch>
  1. It is only necessary to follow the template to create the pull request.

Code of Conduct

To learn more about the code of conduct, access the following documentation.