autofix some freetz kernel configs #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: generate_diffs | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- '.github/workflows/generate_diffs.yml' | |
- 'make/kernel/configs/generate.sh' | |
- 'make/kernel/configs/avm/*' | |
- 'make/kernel/configs/freetz/*' | |
workflow_dispatch: | |
jobs: | |
build: | |
container: | |
# image: ubuntu:20.04 | |
# image: freetzng/generate | |
image: ghcr.io/freetz-ng/generate | |
runs-on: ubuntu-latest | |
if: github.repository == 'freetz-ng/freetz-ng' | |
steps: | |
# - name: update | |
# run: apt-get -y update && apt-get -y upgrade && apt-get -y dist-upgrade | |
# | |
# - name: install | |
# run: | | |
# DEBIAN_FRONTEND=noninteractive apt-get -y install \ | |
# git locales | |
# | |
# - name: locale | |
# run: locale-gen en_US.utf8 && locale-gen de_DE.UTF-8 && update-locale | |
- name: clone | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
umask 0022 | |
git config --global --add safe.directory $GITHUB_WORKSPACE | |
git clone https://github-actions:$GITHUB_TOKEN@${GITHUB_SERVER_URL##*/}/$GITHUB_REPOSITORY.git $GITHUB_WORKSPACE --branch $GITHUB_REF_NAME | |
- name: generate | |
run: | | |
export LANG=en_US.utf8 | |
make/kernel/configs/generate.sh | |
- name: commit | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config --global --add safe.directory $GITHUB_WORKSPACE | |
git pull | |
git add . | |
git status | |
git config --local user.name github-actions | |
git config --local user.email [email protected] | |
git diff --cached --quiet && exit 0 || git commit -m "diffs: automatic update" | |
git config --local credential.helper '!x() { echo "password=$GITHUB_TOKEN"; };x' | |
git push origin $GITHUB_REF_NAME | |