summaryrefslogtreecommitdiff
path: root/.github/workflows/linearize.sh
diff options
context:
space:
mode:
authorThalia Archibald <thalia@archibald.dev>2024-10-11 14:01:42 -0700
committerCliff Click <cliffc@acm.org>2024-10-12 08:46:42 -0700
commit7892d55fb77876c613b27d71e5da76e8852ae218 (patch)
tree49767e47421066635810a39c803cdc65182e66a8 /.github/workflows/linearize.sh
parentec02479ccf40b60e97fa946e23f7f9e3fa541432 (diff)
downloadSimple-7892d55fb77876c613b27d71e5da76e8852ae218.tar.gz
Simple-7892d55fb77876c613b27d71e5da76e8852ae218.zip
Grant push permission to workflow
Diffstat (limited to '.github/workflows/linearize.sh')
-rwxr-xr-x.github/workflows/linearize.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/linearize.sh b/.github/workflows/linearize.sh
index ad6968ae..07f22b08 100755
--- a/.github/workflows/linearize.sh
+++ b/.github/workflows/linearize.sh
@@ -4,7 +4,7 @@ set -eEuo pipefail
sort_authors() {
# Unify author aliases.
sed -e 's/^dibyendumajumdar <mobile@majumdar\.org\.uk>$/Dibyendu Majumdar <mobile@majumdar.org.uk>/g' \
- -e 's/^Dibyendu Majumdar <dibyendumajumdar@users\.noreply\.github\.com>$/Dibyendu Majumdar <mobile@majumdar.org.uk>/g' |
+ -e 's/^Dibyendu Majumdar <dibyendumajumdar@users\.noreply\.github\.com>$/Dibyendu Majumdar <mobile@majumdar.org.uk>/g' |
# Rank by number of commits.
sort | uniq -c | sort -nr | sed -E 's/^ *[0-9]+ //'
}
@@ -81,7 +81,7 @@ while read -r chapter; do
sed -Ei 's,\[Chapter ([0-9]+)\]\(chapter0?\1/README\.md\),Chapter \1,' README.md
# Change to a JAR and delete the modules, for a single-project structure.
sed -i -e 's,<packaging>pom</packaging>,<packaging>jar</packaging>,' \
- -e '/<modules>/,/^$/d' pom.xml
+ -e '/<modules>/,/^$/d' pom.xml
fi
git mv chapter_docs "docs/$chapter"
# Restore the link to this chapter.