respect-validation/.github/workflows/update-language-codes.yaml
Henrique Moody f1be7302fc
Use the last MINOR version in updaters
We have three workflows that automatically update the code. They are
using version 2.0 as a base to create their changes. We need to update
that because the last supported version is 2.1.

Since I do not think it is a good idea to change code every time a new
MINOR version is released, I moved that value to a repository secret.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2021-02-06 13:02:07 +01:00

31 lines
797 B
YAML

name: Update language codes
on:
schedule:
- cron: '0 0 * * 0'
jobs:
update-language-codes:
name: Update language codes
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ secrets.LAST_MINOR_VERSION }}
- name: Execute script
run: bin/update-language-codes
- name: Create pull request
uses: peter-evans/create-pull-request@v2
with:
committer: The Respect Panda <therespectpanda@gmail.com>
author: The Respect Panda <therespectpanda@gmail.com>
commit-message: Update list of language codes
title: Update list of language codes
base: ${{ secrets.LAST_MINOR_VERSION }}
branch: "workflows/update-language-codes"