Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #132

Merged
merged 72 commits into from
Oct 24, 2023
Merged

merge #132

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
fc7f467
Create main_versioning.yml
ckvsoft Oct 23, 2023
e08056a
Update main_versioning.yml
ckvsoft Oct 23, 2023
b9abf28
Update main_versioning.yml
ckvsoft Oct 23, 2023
746c8f8
Update main_versioning.yml
ckvsoft Oct 23, 2023
4e7abab
Update controller.sh
ckvsoft Oct 23, 2023
0cd1023
Update run
ckvsoft Oct 23, 2023
4315d74
Update victron-venus-os-install.sh
ckvsoft Oct 23, 2023
e20cb32
Update venus.yml
ckvsoft Oct 23, 2023
9be9b54
Update victron-venus-os-install.sh
ckvsoft Oct 23, 2023
44464e6
Create dev_versioning.yml
ckvsoft Oct 23, 2023
a2f6ac6
Update version to 2.3.1-DEV
actions-user Oct 23, 2023
81b0559
Update venus.yml
ckvsoft Oct 23, 2023
ea3599c
Merge branch 'main' into dev
ckvsoft Oct 23, 2023
aba3e26
Update version to 2.3.2-DEV
actions-user Oct 23, 2023
0546b2c
Merge pull request #15 from ckvsoft/dev
ckvsoft Oct 23, 2023
fc75936
Update version to 2.3.2
actions-user Oct 23, 2023
3c4b382
Merge branch 'christian1980nrw:main' into main
ckvsoft Oct 23, 2023
407ab64
remove set -x
ckvsoft Oct 23, 2023
6a9fe6a
Update version to 2.3.3-DEV
actions-user Oct 23, 2023
1b779dd
Merge branch 'main' into dev
ckvsoft Oct 23, 2023
347db3c
Update version to ..1-DEV
actions-user Oct 23, 2023
a3a4283
Delete .github/workflows/dev_versioning.yml
ckvsoft Oct 23, 2023
778aeab
Update controller.sh
ckvsoft Oct 23, 2023
a974e17
Update version to ..1-DEV
actions-user Oct 23, 2023
d15aecb
Delete scripts/controller.sh
ckvsoft Oct 23, 2023
f2fbfd7
Create controller.sh
ckvsoft Oct 23, 2023
0e934ec
Update version to 2.3.4-DEV
actions-user Oct 23, 2023
ed12732
Merge pull request #17 from ckvsoft/dev
ckvsoft Oct 23, 2023
5716b13
Update version to 2.3.4
actions-user Oct 23, 2023
305ee42
Merge pull request #114 from ckvsoft/main
christian1980nrw Oct 23, 2023
b2f85cd
Update main_versioning.yml
ckvsoft Oct 23, 2023
a49939d
Merge pull request #117 from ckvsoft/main
christian1980nrw Oct 23, 2023
7be9035
Update run
ckvsoft Oct 23, 2023
1630731
Update version to 2.3.5-DEV
actions-user Oct 23, 2023
042eb12
Update victron-venus-os-install.sh
ckvsoft Oct 23, 2023
74f9464
Update version to 2.3.6-DEV
actions-user Oct 23, 2023
56e4c89
Update controller.sh
ckvsoft Oct 23, 2023
2b4c827
Update version to 2.3.7-DEV
actions-user Oct 23, 2023
60da096
Merge branch 'main' into dev
ckvsoft Oct 23, 2023
17d0c5f
Fix main.yml
ckvsoft Oct 23, 2023
eab12d2
Merge pull request #18 from ckvsoft/dev
ckvsoft Oct 23, 2023
e6bfe91
Update version to
actions-user Oct 23, 2023
004a574
Update controller.sh
ckvsoft Oct 24, 2023
e472868
Fix Division by zero
ckvsoft Oct 24, 2023
8b218b2
Merge pull request #19 from ckvsoft/dev
ckvsoft Oct 24, 2023
4bd831e
Update version to
actions-user Oct 24, 2023
f39722a
Update controller.sh
ckvsoft Oct 24, 2023
b45f36a
Update main_versioning.yml
ckvsoft Oct 24, 2023
7ebacff
Merge pull request #119 from ckvsoft/main
christian1980nrw Oct 24, 2023
33fac2b
Update main_versioning.yml
ckvsoft Oct 24, 2023
3c7fb00
Update controller.sh
ckvsoft Oct 24, 2023
5e362ce
Merge pull request #20 from ckvsoft/dev
ckvsoft Oct 24, 2023
7e23346
Merge pull request #120 from ckvsoft/main
christian1980nrw Oct 24, 2023
8f44a07
Fix MacOS log_info error
christian1980nrw Oct 24, 2023
63194ff
Update controller.sh
christian1980nrw Oct 24, 2023
fa76f59
Update controller.sh
christian1980nrw Oct 24, 2023
10b309a
Update controller.sh
christian1980nrw Oct 24, 2023
cce154e
Undo Entso E dev changes to fix API parsing error
christian1980nrw Oct 24, 2023
6b4213e
Update controller.sh
christian1980nrw Oct 24, 2023
bd4b840
Fix Entso-E
christian1980nrw Oct 24, 2023
95f9633
Update controller.sh
christian1980nrw Oct 24, 2023
69b18a1
Update controller.sh
christian1980nrw Oct 24, 2023
8495271
Update controller.sh
christian1980nrw Oct 24, 2023
cce3a19
Update controller.sh
christian1980nrw Oct 24, 2023
1fa0c81
Update controller.sh
christian1980nrw Oct 24, 2023
6963301
use always the branch of the commit
christian1980nrw Oct 24, 2023
1960171
Update main.yml
christian1980nrw Oct 24, 2023
a7e64ca
Update main.yml
christian1980nrw Oct 24, 2023
69f3617
Update main.yml
christian1980nrw Oct 24, 2023
08c7eb1
Update main.yml
christian1980nrw Oct 24, 2023
10e36c9
Update main.yml
christian1980nrw Oct 24, 2023
da2cd07
Update main.yml
christian1980nrw Oct 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ jobs:
fi
execute:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -76,18 +74,21 @@ jobs:
else
echo "I: Nothing to install for ${{ matrix.os }}"
fi
- name: Set script permissions
run: chmod +x ./victron-venus-os-install.sh
- name: Install
run: ./victron-venus-os-install.sh
env:
DEBUG: 1
DESTDIR: /tmp/testing
- name: Control
run: scripts/controller.sh
BRANCH: ${{ steps.set-branch-name.outputs.branch_name }}
- name: Execute Run-Script
run: /tmp/testing//data/etc/Spotmarket-Switcher/service/run
env:
DEBUG: 1
LOG_FILE: /tmp/testing_controller.log
- name: Run
run: scripts/run
rc_local_file: /tmp/testing_rc.local
- name: Execute Control-Script
run: /tmp/testing//data/etc/Spotmarket-Switcher/controller.sh
env:
DEBUG: 1
rc_local_file: /tmp/testing_rc.local
LOG_FILE: /tmp/testing_controller.log
36 changes: 36 additions & 0 deletions .github/workflows/main_versioning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Main Versioning

# This workflow triggers when a pull request to the 'main' branch is closed
on:
pull_request:
types: [closed]
branches:
- main

jobs:
update_version:
# Ensure this job only runs if the PR was merged, not just closed without merging
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Update VERSION in main
run: |
# Attempt to remove the -DEV suffix from the version number
NEW_VERSION=$(sed -n 's/^VERSION=\"\(.*\)-DEV\"$/\1/p' scripts/controller.sh)

# If NEW_VERSION is empty (meaning there was no -DEV), take the current value of VERSION
if [[ -z $NEW_VERSION ]]; then
NEW_VERSION=$(sed -n 's/^VERSION=\"\(.*\)\"$/\1/p' scripts/controller.sh)
fi

# Replace VERSION in the file with the NEW_VERSION value
sed -i "s/^VERSION=\".*\"$/VERSION=\"${NEW_VERSION}\"/" scripts/controller.sh

git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -am "Update version to ${NEW_VERSION}"
git push origin main
11 changes: 8 additions & 3 deletions .github/workflows/venus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,32 @@ jobs:
if which apt > /dev/null
then
apt update
apt -y install wget curl
apt -y install wget curl cron
elif which opkg > /dev/null
then
opkg install wget
opkg install curl
else
echo "W: Tests limited because of non-avail of wget and curl"
fi
- name: Set script permissions
run: chmod +x ./victron-venus-os-install.sh
env:
DEBUG: 1
- name: Execute Installation under Venus OS
run: |
echo pwd
pwd
echo ls
ls
echo victron-venus-install.sh
echo victron-venus-os-install.sh
if ./victron-venus-os-install.sh ; then
echo "[OK]"
else
echo "[FAIL]"
pwd
find . | head -n 30
HEAD_PATH=$(which head)
find . | $HEAD_PATH -n 30
exit 1
fi
env:
Expand Down
Loading
Loading