-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -19,6 +19,17 @@ jobs: | |
python -m pip install mysql-to-sqlite3 | ||
- name: Get inventory data | ||
run: mysql2sqlite -f inventory.db -d ${{ secrets.INVENTORY_DB }} -u ${{ secrets.INVENTORY_USER }} --mysql-password ${{ secrets.INVENTORY_PASSWORD }} -h ${{ secrets.INVENTORY_HOST }} | ||
- name: Commit Files | ||
run: | | ||
git config --local user.email "${{ vars.GIT_EMAIL }}" | ||
git config --local user.name "${{ vars.GIT_USER }}" | ||
git add -A | ||
git diff-index --quiet HEAD || (git commit -a -m "Sync inventory" --allow-empty) | ||
- name: Push Changes | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
- name: Upload inventory.db | ||
uses: bayssmekanique/action-simple-file-upload@v2 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -21,9 +21,20 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
python -m pip install pandas | ||
- name: Create stations.db | ||
run: python database.py | ||
- name: Commit Files | ||
run: | | ||
git config --local user.email "${{ vars.GIT_EMAIL }}" | ||
git config --local user.name "${{ vars.GIT_USER }}" | ||
git add -A | ||
git diff-index --quiet HEAD || (git commit -a -m "Sync stations" --allow-empty) | ||
- name: Push Changes | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
- name: Upload stations.db | ||
uses: bayssmekanique/action-simple-file-upload@v2 | ||
with: | ||
|
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
Empty file.