-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Hans
committed
May 5, 2020
1 parent
62bc963
commit 1060edd
Showing
3 changed files
with
34 additions
and
35 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 |
---|---|---|
|
@@ -24,37 +24,37 @@ jobs: | |
--docker-user ${{ secrets.DOCKER_USERNAME }} \ | ||
--docker-password ${{ secrets.DOCKER_PASSWORD }} | ||
# publish: | ||
# needs: build | ||
# name: Publish release | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout add-on code | ||
# uses: actions/checkout@v2 | ||
# with: | ||
# persist-credentials: false | ||
# path: addon | ||
# - name: Checkout repository code | ||
# uses: actions/checkout@v2 | ||
# with: | ||
# persist-credentials: false | ||
# repository: filii-lamberti/repository | ||
# path: repository | ||
# - name: Create local changes and commit files | ||
# continue-on-error: true | ||
# run: | | ||
# ADDON_NAME=$( cut -c22- <<< ${{ github.repository }} ) | ||
# ADDON_VERSION=$( cut -c12- <<< ${{ github.ref }} ) | ||
# cp -v addon/README.md addon/filiibot/config.json repository/filiibot/ | ||
# cd repository | ||
# sed -i "s/dev/$ADDON_VERSION/g" filiibot/config.json | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "Filii Lamberti" | ||
# git add . | ||
# git commit -m "Upgrade $ADDON_NAME to v$ADDON_VERSION" -a | ||
# - name: Push changes | ||
# uses: ad-m/github-push-action@master | ||
# with: | ||
# github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
# directory: repository | ||
# repository: filii-lamberti/repository | ||
publish: | ||
needs: build | ||
name: Publish release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout add-on code | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
path: addon | ||
- name: Checkout repository code | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
repository: Expaso/hassos-addons | ||
path: repository | ||
- name: Create local changes and commit files | ||
continue-on-error: true | ||
run: | | ||
ADDON_NAME=$( cut -c22- <<< ${{ github.repository }} ) | ||
ADDON_VERSION=$( cut -c12- <<< ${{ github.ref }} ) | ||
cp -v addon/README.md addon/timescaledb/config.json repository/timescaledb | ||
cd repository | ||
sed -i "s/dev/$ADDON_VERSION/g" timescaledb/config.json | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Hans van Essen" | ||
git add . | ||
git commit -m "Upgrade $ADDON_NAME to v$ADDON_VERSION" -a | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
directory: repository | ||
repository: Expaso/hassos-addons |
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
File renamed without changes.