Skip to content

Commit

Permalink
fix(global-replicator): don't exlude all forks (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored May 26, 2024
1 parent b35ad61 commit 8fa5106
Showing 1 changed file with 39 additions and 51 deletions.
90 changes: 39 additions & 51 deletions .github/workflows/global-replicator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
replicate:
runs-on: ubuntu-latest
name: Replicate files
env:
BOT_BRANCH_NAME: 'bot/update-files-from-global-repo'
COMMIT_MESSAGE: 'chore: update global workflows'
REPOS_TO_IGNORE: >-
homebrew-core,
winget-pkgs,
Virtual-Gamepad-Emulation-Bus,
Virtual-Gamepad-Emulation-Client,
Virtual-Gamepad-Emulation-dotnet
steps:
- name: Checkout repository
Expand All @@ -29,6 +38,9 @@ jobs:
- name: Removing files
uses: derberg/[email protected]
with:
bot_branch_name: ${{ env.BOT_BRANCH_NAME }}
commit_message: ${{ env.COMMIT_MESSAGE }}
repos_to_ignore: ${{ env.REPOS_TO_IGNORE }}
github_token: ${{ secrets.GH_BOT_TOKEN }}
committer_username: ${{ secrets.GH_BOT_NAME }}
committer_email: ${{ secrets.GH_BOT_EMAIL }}
Expand All @@ -42,13 +54,10 @@ jobs:
qodana-dotnet.yaml,
qodana-js.yaml,
qodana-python.yaml
commit_message: 'chore: update global workflows'
repos_to_ignore: ''
topics_to_include: ''
exclude_private: false
exclude_forked: true
exclude_forked: false
destination: ''
bot_branch_name: bot/update-files-from-global-repo

# checkout between each step to ensure we have a clean GitHub workspace
# see https://github.com/derberg/manage-files-in-multiple-repositories/issues/61#issuecomment-1747013728
Expand All @@ -58,6 +67,9 @@ jobs:
- name: Replicating files (general)
uses: derberg/[email protected]
with:
bot_branch_name: ${{ env.BOT_BRANCH_NAME }}
commit_message: ${{ env.COMMIT_MESSAGE }}
repos_to_ignore: ${{ env.REPOS_TO_IGNORE }}
github_token: ${{ secrets.GH_BOT_TOKEN }}
committer_username: ${{ secrets.GH_BOT_NAME }}
committer_email: ${{ secrets.GH_BOT_EMAIL }}
Expand All @@ -74,134 +86,110 @@ jobs:
.github/workflows/issues.yml,
.github/workflows/issues-stale.yml,
.github/workflows/yaml-lint.yml
commit_message: 'chore: update global workflows'
repos_to_ignore: ''
topics_to_include: ''
exclude_private: false
exclude_forked: true
exclude_forked: false
destination: ''
bot_branch_name: bot/update-files-from-global-repo

- name: Checkout repository
uses: actions/checkout@v4

- name: Replicating files (python)
uses: derberg/[email protected]
with:
bot_branch_name: ${{ env.BOT_BRANCH_NAME }}
commit_message: ${{ env.COMMIT_MESSAGE }}
repos_to_ignore: ${{ env.REPOS_TO_IGNORE }}
github_token: ${{ secrets.GH_BOT_TOKEN }}
committer_username: ${{ secrets.GH_BOT_NAME }}
committer_email: ${{ secrets.GH_BOT_EMAIL }}
patterns_to_ignore: ''
patterns_to_include: >-
.flake8,
.github/workflows/python-flake8.yml
commit_message: 'chore: update global workflows'
repos_to_ignore: ''
topics_to_include: 'python'
exclude_private: false
exclude_forked: true
exclude_forked: false
destination: ''
bot_branch_name: bot/update-files-from-global-repo

- name: Checkout repository
uses: actions/checkout@v4

- name: Replicating files (docker)
uses: derberg/[email protected]
with:
bot_branch_name: ${{ env.BOT_BRANCH_NAME }}
commit_message: ${{ env.COMMIT_MESSAGE }}
repos_to_ignore: ${{ env.REPOS_TO_IGNORE }}
github_token: ${{ secrets.GH_BOT_TOKEN }}
committer_username: ${{ secrets.GH_BOT_NAME }}
committer_email: ${{ secrets.GH_BOT_EMAIL }}
patterns_to_ignore: ''
patterns_to_include: >-
.github/workflows/ci-docker.yml
commit_message: 'chore: update global workflows'
repos_to_ignore: ''
topics_to_include: 'docker'
exclude_private: false
exclude_forked: true
exclude_forked: false
destination: ''
bot_branch_name: bot/update-files-from-global-repo

- name: Checkout repository
uses: actions/checkout@v4

- name: Replicating files (docker)
- name: Replicating files (c, cpp)
uses: derberg/[email protected]
with:
bot_branch_name: ${{ env.BOT_BRANCH_NAME }}
commit_message: ${{ env.COMMIT_MESSAGE }}
repos_to_ignore: ${{ env.REPOS_TO_IGNORE }}
github_token: ${{ secrets.GH_BOT_TOKEN }}
committer_username: ${{ secrets.GH_BOT_NAME }}
committer_email: ${{ secrets.GH_BOT_EMAIL }}
patterns_to_ignore: ''
patterns_to_include: >-
.clang-format,
.github/workflows/cpp-lint.yml
commit_message: 'chore: update global workflows'
repos_to_ignore: ''
topics_to_include: 'cpp'
topics_to_include: 'c,cpp'
exclude_private: false
exclude_forked: true
exclude_forked: false
destination: ''
bot_branch_name: bot/update-files-from-global-repo

- name: Checkout repository
uses: actions/checkout@v4

- name: Replicating files (custom issues)
uses: derberg/[email protected]
with:
bot_branch_name: ${{ env.BOT_BRANCH_NAME }}
commit_message: ${{ env.COMMIT_MESSAGE }}
repos_to_ignore: ${{ env.REPOS_TO_IGNORE }}
github_token: ${{ secrets.GH_BOT_TOKEN }}
committer_username: ${{ secrets.GH_BOT_NAME }}
committer_email: ${{ secrets.GH_BOT_EMAIL }}
patterns_to_ignore: ''
patterns_to_include: >-
.github/ISSUE_TEMPLATE/config.yml
commit_message: 'chore: update global workflows'
repos_to_ignore: ''
topics_to_include: 'replicator-custom-issues'
exclude_private: false
exclude_forked: true
exclude_forked: false
destination: ''
bot_branch_name: bot/update-files-from-global-repo

- name: Checkout repository
uses: actions/checkout@v4

- name: Replicating files (release/changelog workflows)
uses: derberg/[email protected]
with:
bot_branch_name: ${{ env.BOT_BRANCH_NAME }}
commit_message: ${{ env.COMMIT_MESSAGE }}
repos_to_ignore: ${{ env.REPOS_TO_IGNORE }}
github_token: ${{ secrets.GH_BOT_TOKEN }}
committer_username: ${{ secrets.GH_BOT_NAME }}
committer_email: ${{ secrets.GH_BOT_EMAIL }}
patterns_to_ignore: ''
patterns_to_include: >-
.github/workflows/release-notifier.yml,
.github/workflows/update-changelog.yml
commit_message: 'chore: update global workflows'
repos_to_ignore: ''
topics_to_include: 'replicator-release-notifications'
exclude_private: false
exclude_forked: true
destination: ''
bot_branch_name: bot/update-files-from-global-repo

# todo: the following can be removed after it has run once
- name: Checkout repository
uses: actions/checkout@v4

- name: Removing files (changelog workflows)
uses: derberg/[email protected]
with:
github_token: ${{ secrets.GH_BOT_TOKEN }}
committer_username: ${{ secrets.GH_BOT_NAME }}
committer_email: ${{ secrets.GH_BOT_EMAIL }}
patterns_to_ignore: ''
patterns_to_remove: >-
.github/workflows/update-changelog.yml
commit_message: 'chore: update global workflows'
repos_to_ignore: ''
topics_to_include: 'github-action'
exclude_private: false
exclude_forked: true
exclude_forked: false
destination: ''
bot_branch_name: bot/update-files-from-global-repo

0 comments on commit 8fa5106

Please sign in to comment.