-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/readme-name
- Loading branch information
Showing
5 changed files
with
112 additions
and
32 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: "\U0001F41B Bug report" | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Thank you for reporting a possible bug. Please fill in as much of the template below as you can. --> | ||
|
||
**Describe the bug** | ||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
**Steps to Reproduce** | ||
<!-- Steps to reproduce the behavior. --> | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
**Additional context** | ||
<!-- Add any other context about the problem here. --> |
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,25 @@ | ||
--- | ||
name: "\U0001F680 Enhancement" | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Thank you for suggesting an idea to make things better. Please fill in as much of the template below as you can. --> | ||
|
||
**Is your enhancement related to a problem? Please describe.** | ||
<!-- Please describe the problem you are trying to solve. --> | ||
|
||
**Describe the solution you'd like** | ||
<!-- Please describe the desired behavior. --> | ||
|
||
**Designs** | ||
<!-- If applicable, add mockups/screenshots/etc. to help explain your solution. --> | ||
|
||
**Describe alternatives you've considered** | ||
<!-- Please describe alternative solutions or features you have considered. --> | ||
|
||
**Additional context** | ||
<!-- Add any other context about the enhancement here. --> |
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,13 @@ | ||
--- | ||
name: "❓ Need help?" | ||
about: Ask us a question, we're here to help! | ||
title: '' | ||
labels: question | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- If you have a question that is neither a bug report nor an enhancement, then please post it here! Please fill in as much of the template below as you can. --> | ||
|
||
**Describe your question** | ||
<!-- A clear and concise description of what your question is. --> |
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 |
---|---|---|
|
@@ -46,38 +46,51 @@ svn update --set-depth infinity assets | |
svn update --set-depth infinity trunk | ||
|
||
echo "➤ Copying files..." | ||
cd "$GITHUB_WORKSPACE" | ||
|
||
# "Export" a cleaned copy to a temp directory | ||
TMP_DIR="/github/archivetmp" | ||
mkdir "$TMP_DIR" | ||
|
||
git config --global user.email "[email protected]" | ||
git config --global user.name "10upbot on GitHub" | ||
|
||
# If there's no .gitattributes file, write a default one into place | ||
if [[ ! -e "$GITHUB_WORKSPACE/.gitattributes" ]]; then | ||
cat > "$GITHUB_WORKSPACE/.gitattributes" <<-EOL | ||
/$ASSETS_DIR export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.github export-ignore | ||
EOL | ||
|
||
# Ensure we are in the $GITHUB_WORKSPACE directory, just in case | ||
# The .gitattributes file has to be committed to be used | ||
# Just don't push it to the origin repo :) | ||
git add .gitattributes && git commit -m "Add .gitattributes file" | ||
fi | ||
if [[ -e "$GITHUB_WORKSPACE/.distignore" ]]; then | ||
echo "ℹ︎ Using .distignore" | ||
|
||
# This will exclude everything in the .gitattributes file with the export-ignore flag | ||
git archive HEAD | tar x --directory="$TMP_DIR" | ||
# Use $TMP_DIR as the source of truth | ||
TMP_DIR=$GITHUB_WORKSPACE | ||
|
||
cd "$SVN_DIR" | ||
# Copy from current branch to /trunk, excluding dotorg assets | ||
# The --delete flag will delete anything in destination that no longer exists in source | ||
rsync -rc --exclude-from="$GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" trunk/ --delete | ||
else | ||
echo "ℹ︎ Using .gitattributes" | ||
|
||
cd "$GITHUB_WORKSPACE" | ||
|
||
# "Export" a cleaned copy to a temp directory | ||
TMP_DIR="/github/archivetmp" | ||
mkdir "$TMP_DIR" | ||
|
||
git config --global user.email "[email protected]" | ||
git config --global user.name "10upbot on GitHub" | ||
|
||
# If there's no .gitattributes file, write a default one into place | ||
if [[ ! -e "$GITHUB_WORKSPACE/.gitattributes" ]]; then | ||
cat > "$GITHUB_WORKSPACE/.gitattributes" <<-EOL | ||
/$ASSETS_DIR export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.github export-ignore | ||
EOL | ||
|
||
# Ensure we are in the $GITHUB_WORKSPACE directory, just in case | ||
# The .gitattributes file has to be committed to be used | ||
# Just don't push it to the origin repo :) | ||
git add .gitattributes && git commit -m "Add .gitattributes file" | ||
fi | ||
|
||
# Copy from clean copy to /trunk, excluding dotorg assets | ||
# The --delete flag will delete anything in destination that no longer exists in source | ||
rsync -rc "$TMP_DIR/" trunk/ --delete | ||
# This will exclude everything in the .gitattributes file with the export-ignore flag | ||
git archive HEAD | tar x --directory="$TMP_DIR" | ||
|
||
cd "$SVN_DIR" | ||
|
||
# Copy from clean copy to /trunk, excluding dotorg assets | ||
# The --delete flag will delete anything in destination that no longer exists in source | ||
rsync -rc "$TMP_DIR/" trunk/ --delete | ||
fi | ||
|
||
# Copy dotorg assets to /assets | ||
rsync -rc "$GITHUB_WORKSPACE/$ASSETS_DIR/" assets/ --delete | ||
|
@@ -88,7 +101,7 @@ svn status | |
|
||
if [[ -z $(svn stat) ]]; then | ||
echo "🛑 Nothing to deploy!" | ||
exit 78 | ||
exit 0 | ||
# Check if there is more than just the readme.txt modified in trunk | ||
# The leading whitespace in the pattern is important | ||
# so it doesn't match potential readme.txt in subdirectories! | ||
|