From cc5e60c48463879bb5a21d31fe64bc66d73297fd Mon Sep 17 00:00:00 2001 From: Marc Foley Date: Wed, 17 Sep 2025 15:16:55 +0100 Subject: [PATCH] gha: auto run update_sandbox.txt --- .github/workflows/update_sandbox.yaml | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/update_sandbox.yaml diff --git a/.github/workflows/update_sandbox.yaml b/.github/workflows/update_sandbox.yaml new file mode 100644 index 000000000..fe697e48e --- /dev/null +++ b/.github/workflows/update_sandbox.yaml @@ -0,0 +1,44 @@ +name: Generate Push Lists + +on: + schedule: + - cron: "0 * * * *" # every hour on the hour + workflow_dispatch: # allow manual runs too + +permissions: + contents: write + +jobs: + gen-push-lists: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install gftools + run: pip install gftools + + - name: setup git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git remote add upstream https://github.com/google/fonts.git + + - name: Run gftools gen-push-lists + run: gftools gen-push-lists . + env: + GH_TOKEN: ${{ github.token }} + + - name: Commit to_sandbox.txt if changed + run: | + git add to_sandbox.txt + git commit -m "Update to_sandbox.txt [automated]" || echo "No changes to commit" + git push \ No newline at end of file -- 2.47.3