Blame .github/workflows/po-refresh.yml
|
Packit Service |
0c2606 |
name: po-refresh
|
|
Packit Service |
0c2606 |
on:
|
|
Packit Service |
0c2606 |
schedule:
|
|
Packit Service |
0c2606 |
# Run this on Tuesday evening (UTC), so that it's ready for release on
|
|
Packit Service |
0c2606 |
# Wednesday, with some spare time
|
|
Packit Service |
0c2606 |
- cron: '0 18 * * 2'
|
|
Packit Service |
0c2606 |
# can be run manually on https://github.com/osbuild/cockpit-composer/actions
|
|
Packit Service |
0c2606 |
workflow_dispatch:
|
|
Packit Service |
0c2606 |
jobs:
|
|
Packit Service |
0c2606 |
po-refresh:
|
|
Packit Service |
904037 |
runs-on: ubuntu-20.04
|
|
Packit Service |
0c2606 |
steps:
|
|
Packit Service |
0c2606 |
- name: Set up dependencies
|
|
Packit Service |
904037 |
run: |
|
|
Packit Service |
904037 |
sudo apt update
|
|
Packit Service |
904037 |
sudo apt install -y --no-install-recommends npm make gettext
|
|
Packit Service |
0c2606 |
|
|
Packit Service |
0c2606 |
- name: Set up configuration and secrets
|
|
Packit Service |
0c2606 |
run: |
|
|
Packit Service |
0c2606 |
printf '[user]\n\tname = Cockpit Project\n\temail=cockpituous@gmail.com\n' > ~/.gitconfig
|
|
Packit Service |
0c2606 |
echo '${{ secrets.GITHUB_TOKEN }}' > ~/.config/github-token
|
|
Packit Service |
0c2606 |
# po-refresh pushes to weblate repo via https://github.com, that needs our cockpituous token
|
|
Packit Service |
0c2606 |
git config --global credential.helper store
|
|
Packit Service |
0c2606 |
echo 'https://token:${{ secrets.COCKPITUOUS_TOKEN }}@github.com' >> ~/.git-credentials
|
|
Packit Service |
0c2606 |
|
|
Packit Service |
0c2606 |
- name: Clone repository
|
|
Packit Service |
0c2606 |
uses: actions/checkout@v2
|
|
Packit Service |
0c2606 |
|
|
Packit Service |
0c2606 |
- name: Run po-refresh bot
|
|
Packit Service |
0c2606 |
run: |
|
|
Packit Service |
0c2606 |
make bots
|
|
Packit Service |
0c2606 |
bots/po-refresh
|