-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sync] Updates from awesome-template
Signed-off-by: kdeldycke <[email protected]>
- Loading branch information
kdeldycke
committed
Mar 4, 2024
1 parent
9aca815
commit 19596d8
Showing
10 changed files
with
147 additions
and
83 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
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
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 |
---|---|---|
@@ -1,11 +1,32 @@ | ||
[allowlist] | ||
description = "False positives" | ||
commits = [ | ||
|
||
### kdeldycke/awesome-billing | ||
# Twitter status IDs. | ||
"5b54ac1befb7a768a18b2abd4a7b091766ee7609", | ||
"4607e5923f1889ce5136b1a6bdfbddd769cd7fc3", | ||
"1cfd0513359a5ce20b538b6a637d40c4cc50a37f", | ||
|
||
|
||
### kdeldycke/awesome-engineering-team-management | ||
# Twitter status IDs. | ||
"044ccf813c180d1b52fa550549f1e3ffe7ad3176", | ||
"4ee04962090c60f9d2bd26e507584c95b2f039cb", | ||
"e945e90fbcd4b610d71cbe766b1c909b51c674a5", | ||
"bdae66b4dbc54fcf66aa2c5bf61598c894a6172d", | ||
"6462b4a4b0335823f2a9e8412a1c10a38561900e", | ||
"ac1dd92507ed071da3ac5270484a152bfef93aa2", | ||
"e9eb3864157f504cb29fab33d4f63748302c963d", | ||
"a43eef1b55fff47879fe671abbebc7e279d59999", | ||
"1a5e33dd31d129a1335ae2418ec43bf1d43c3760", | ||
"0e05ffafc90dd4ea337aca7372c983e143ba48a8", | ||
"0e93d0ced146e4a32a1838b1aa4dbf2d20703964", | ||
"df0e49b612e68b9389c671463640e5d17b479231", | ||
"b743e4aecc5822c51aa088312b20d4965720aa7e", | ||
"94c532529b78b20e9363bded9e2788dd03a59832", | ||
"f0fe92563a14f93dbe07579ff735b844cfb69a7d", | ||
"a804606fb0794615df5c078ab220b615796e1ba9", | ||
"14d523e38ebe8f2859646c4cb9736b1843802476", | ||
"36c488d8b52f66120d51b0fbb7b93667453461fe", | ||
"1da97b40558cd6c5941edd2db9f9a58407d5a3bf", | ||
"56f8e6771c88625ed82e6663961fc2874c53f874", | ||
] |
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
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ name: Autofix | |
jobs: | ||
|
||
autofix: | ||
uses: kdeldycke/workflows/.github/workflows/[email protected].4 | ||
uses: kdeldycke/workflows/.github/workflows/[email protected].0 |
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ name: Autolock | |
jobs: | ||
|
||
autolock: | ||
uses: kdeldycke/workflows/.github/workflows/[email protected].4 | ||
uses: kdeldycke/workflows/.github/workflows/[email protected].0 |
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 |
---|---|---|
|
@@ -9,68 +9,5 @@ name: Docs | |
|
||
jobs: | ||
|
||
#docs: | ||
# uses: kdeldycke/workflows/.github/workflows/[email protected] | ||
|
||
|
||
awesome-template-sync: | ||
name: Sync awesome template | ||
if: > | ||
startsWith(github.event.repository.name, 'awesome-') | ||
&& github.event.repository.name != 'awesome-template' | ||
runs-on: ubuntu-22.04 | ||
# We need custom PAT through the whole job so we get workflow permissions to update all the boilerplate .github | ||
# files from awesome-template. | ||
steps: | ||
- name: Initial checkout | ||
uses: actions/[email protected] | ||
with: | ||
token: ${{ secrets.WORKFLOW_UPDATE_GITHUB_PAT || secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Sync from template repo | ||
id: template_sync | ||
uses: AndreasAugustin/[email protected] | ||
with: | ||
github_token: ${{ secrets.WORKFLOW_UPDATE_GITHUB_PAT || secrets.GITHUB_TOKEN }} | ||
source_repo_path: kdeldycke/awesome-template | ||
pr_title: "[sync] Updates from `awesome-template`" | ||
pr_commit_msg: "[sync] Updates from awesome-template" | ||
pr_branch_name_prefix: "sync-awesome-template" | ||
pr_labels: "📚 documentation" | ||
|
||
- name: Checkout new template sync branch | ||
uses: actions/[email protected] | ||
with: | ||
token: ${{ secrets.WORKFLOW_UPDATE_GITHUB_PAT || secrets.GITHUB_TOKEN }} | ||
ref: ${{ steps.template_sync.outputs.pr_branch }} | ||
fetch-depth: 0 | ||
|
||
# XXX We cannot rely on peter-evans/create-pull-request to manage the push of the new commit to the PR, as it | ||
# ends up with a: "Unexpected error: fatal: could not open '.git/COMMIT_EDITMSG': Permission denied". | ||
# See: https://github.com/AndreasAugustin/actions-template-sync/issues/484 | ||
# So we manage the next steps with bare git calls. | ||
|
||
- name: Update repo URLs | ||
# Replace "/kdeldycke/awesome-template/" in URLs by "/kdeldycke/awesome-<repo_id>/". | ||
run: > | ||
find ./.github/ -type f -iregex ".*\.\(md\|yaml\)$" -print -exec sed -i | ||
"s/\/kdeldycke\/awesome-template\//\/kdeldycke\/${{ github.event.repository.name }}\//g" "{}" \; | ||
- name: Setup Git user | ||
run: | | ||
git config --global user.name "${{ github.actor }}" | ||
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | ||
- name: Deactivate LFS | ||
# XXX Was introduced in https://github.com/AndreasAugustin/actions-template-sync/commit/5335a55 | ||
run: | | ||
git config lfs.https://github.com/kdeldycke/${{ github.event.repository.name }}.git/info/lfs.locksverify false | ||
- name: Merge change to previous commit | ||
run: | | ||
git commit --all --amend --no-edit | ||
- name: Push new commit to PR | ||
run: | | ||
git push --force | ||
docs: | ||
uses: kdeldycke/workflows/.github/workflows/[email protected] |
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ name: Label sponsors | |
jobs: | ||
|
||
label-sponsors: | ||
uses: kdeldycke/workflows/.github/workflows/[email protected].4 | ||
uses: kdeldycke/workflows/.github/workflows/[email protected].0 |
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ name: Labels | |
jobs: | ||
|
||
labels: | ||
uses: kdeldycke/workflows/.github/workflows/[email protected].4 | ||
uses: kdeldycke/workflows/.github/workflows/[email protected].0 |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ name: Lint | |
jobs: | ||
|
||
lint: | ||
uses: kdeldycke/workflows/.github/workflows/[email protected].4 | ||
uses: kdeldycke/workflows/.github/workflows/[email protected].0 |