forked from hotosm/tasking-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re: OpenHistoricalMap/issues#885, preserving upstream docs.
- Loading branch information
1 parent
d1826f1
commit bf43d89
Showing
2 changed files
with
22 additions
and
6 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
branches: 885-ci-for-tasking-manager | ||
# schedule: | ||
# - cron: "34 12 * * *" | ||
# - cron: '34 12 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -45,9 +45,9 @@ jobs: | |
env: | ||
UPSTREAM: https://github.com/tyrasd/overpass-turbo | ||
run: | | ||
git config --global user.name "github-actions" | ||
git config --global user.email "[email protected]" | ||
git remote add upstream "${UPSTREAM}" | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
git remote add upstream '${UPSTREAM}' | ||
git fetch upstream master | ||
- name: List all branches | ||
|
@@ -61,12 +61,12 @@ jobs: | |
with: | ||
branch: 'the-sacrifice' | ||
|
||
- name: Check out 'release-candidate', our new sacrificial branch | ||
- name: Check out our new sacrificial branch | ||
uses: actions/checkout@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
ref: "the-sacrifice" | ||
ref: 'the-sacrifice' | ||
fetch-depth: 0 | ||
|
||
- name: List all branches | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -d "upstream" ]; then | ||
mkdir upstream | ||
fi | ||
for i in $(git ls-tree upstream/master --name-only); do | ||
if [[ $i == *.md ]];then | ||
echo $i | ||
git show upstream/master:$i > upstream/$i | ||
fi | ||
done | ||
git show upstream/master:LICENSE.txt > upstream/LICENSE | ||
git add upstream | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git commit -m 'Preserving upstream markdown & text files.' | ||
fi |