theforeman / actions

Shared GitHub workflows for use in the Foreman project
3 stars 7 forks source link

Translation action for Hammer plugins #12

Closed stejskalleos closed 6 months ago

stejskalleos commented 1 year ago

Action for pulling translations and updating strings.

Workflow overview

Requirements

How to test Set the TX_TOKEN and update permissions for the GITHUB_TOKEN. Then use stejskalleos/foreman_actions/ repo for the action

name: Update translations

on:
  workflow_dispatch:

jobs:
  tx-update:
    name: Update translations
    uses: stejskalleos/foreman_actions/.github/workflows/tx-hammer-plugins.yml@hammer-tx
    with:
      plugin_name: "hammer-cli-foreman-google"
    secrets:
      tx_token: "${{ secrets.TX_TOKEN }}"
      gh_token: "${{ secrets.GITHUB_TOKEN }}"
stejskalleos commented 1 year ago

I like the idea and think we should do something similar for Foreman plugins.

That's the plan. First I would like to use it just for the Hammer plugins, spread it across multiple repositories, and after we catch up on all the bugs & enhancements I will create action for the Foreman plugins.

I think with Hammer it is possible to clone a plugin and run the action from there. You simply make sure it pulls Hammer from git using the Gemfile. Would that simplify the action?

Maybe a little, I still have to go to the gem folder and to the git stuff there.

stejskalleos commented 1 year ago

@ekohl updated, did some cleanup and use gh action for the PR stuff