Skip to content

Sync Files

Sync Files #98

Workflow file for this run

# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Sync Files
on:
push:
branches:
- main
schedule:
- cron: "0 14 * * MON"
workflow_dispatch:
concurrency: sync-files
jobs:
sync:
strategy:
matrix:
config: [sync-files-all]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: add all public, non-archived, and non forked repos to .github/sync-files-all.yml
run: |
gh repo list googleworkspace \
--no-archived \
--visibility public \
--source \
--json name --jq '.[] .name' \
-L 1000 \
| grep -v "^meet$" \
| sed -e 's/^/ googleworkspace\//' \
>> .github/sync-files-all.yml
cat .github/sync-files-all.yml
env:
GH_TOKEN: ${{ secrets.GOOGLEWORKSPACE_BOT_TOKEN }}
- name: ${{ matrix.config }}.yml
uses: BetaHuhn/repo-file-sync-action@d61fc2b98c0b48c5ee77d9b575b191fe8e59cba3 # v1.17.19 June 2022
with:
GH_PAT: ${{ secrets.GOOGLEWORKSPACE_BOT_TOKEN }}
GIT_EMAIL: "googleworkspace-bot@google.com"
GIT_USERNAME: "googleworkspace-bot"
OVERWRITE_EXISTING_PR: true
CONFIG_PATH: .github/${{ matrix.config }}.yml
BRANCH_PREFIX: ${{ matrix.config }}
COMMIT_PREFIX: "chore: "
PR_LABELS: |
sync-files