-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(global-replicator): don't exlude all forks (#337)
- Loading branch information
1 parent
b35ad61
commit 8fa5106
Showing
1 changed file
with
39 additions
and
51 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
@@ -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 | ||
|
@@ -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 }} | ||
|
@@ -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 |