forked from ckan/ckanext-xloader
-
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.
Merge pull request #27 from open-data/cherry-pick/8ad1ac9f368acb04cdd…
…58953d3f7cc19f7df2b40 Merge pull request ckan#208 from ckan/github-206-empty-lines
- Loading branch information
Showing
5 changed files
with
74 additions
and
2 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,43 @@ | ||
name: Changelog Entry | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
check_file: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Check Chanelog Exists | ||
run: | | ||
if [[ $(ls ./changes/${{ github.event.number }}.*) ]]; then | ||
echo -e "\n" | ||
echo -e "\033[0;36mINFO: changelog for PR ${{ github.event.number }} exists.\033[0;0m" | ||
echo -e "\n" | ||
exit 0 | ||
else | ||
echo -e "\n" | ||
echo -e "\033[0;31mERROR: changelog for PR ${{ github.event.number }} does not exist.\033[0;0m" | ||
echo -e "\n" | ||
exit 1 | ||
fi | ||
- name: Check Changelog Extension | ||
run: | | ||
fullfile=$(ls ./changes/${{ github.event.number }}.*) | ||
filename=$(basename -- "$fullfile") | ||
extension="${filename##*.}" | ||
allowed_types='[ "fix", "bugfix", "hotfix", "feature", "misc", "changes", "migration", "removal" ]' | ||
if [[ $allowed_types =~ "\"$extension\"" ]]; then | ||
echo -e "\n" | ||
echo -e "\033[0;36mINFO: extension ${extension} accepted.\033[0;0m" | ||
echo -e "\n" | ||
exit 0 | ||
else | ||
echo -e "\n" | ||
echo -e "\033[0;31mERROR: changelog file ending in ${extension} not supported.\033[0;0m" | ||
echo -e "\n" | ||
exit 1 | ||
fi |
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 @@ | ||
Ignore empty rows when loading into the DataStore. |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
date,temperature,place | ||
2011-01-01,1,Galway | ||
2011-01-02,-1,Galway | ||
2011-01-03,0,Galway | ||
2011-01-01,6,Berkeley | ||
|
||
,,Berkeley | ||
2011-01-03,5, | ||
|
||
|
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