|
@@ -35,6 +35,18 @@ jobs:
|
|
workflow_id: 4439867
|
|
workflow_id: 4439867
|
|
access_token: ${{ github.token }}
|
|
access_token: ${{ github.token }}
|
|
|
|
|
|
|
|
+ - name: Checkout
|
|
|
|
+ uses: actions/checkout@main
|
|
|
|
+
|
|
|
|
+ - name: Load Settings.ini
|
|
|
|
+ run: |
|
|
|
|
+ source "${GITHUB_WORKSPACE}/devices/common/settings.ini"
|
|
|
|
+ if [ -f "devices/${{matrix.target}}/settings.ini" ]; then
|
|
|
|
+ source "${GITHUB_WORKSPACE}/devices/${{matrix.target}}/settings.ini"
|
|
|
|
+ fi
|
|
|
|
+ echo "REPO_URL=${REPO_URL}" >> $GITHUB_ENV
|
|
|
|
+ echo "REPO_BRANCH=${REPO_BRANCH}" >> $GITHUB_ENV
|
|
|
|
+
|
|
- name: Trigger Compile
|
|
- name: Trigger Compile
|
|
run: |
|
|
run: |
|
|
sudo timedatectl set-timezone "$TZ"
|
|
sudo timedatectl set-timezone "$TZ"
|
|
@@ -55,6 +67,7 @@ jobs:
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
|
|
-d '{"event_type": "nanopi-r4s ${{ env.SSH }}", "client_payload": {"target": "nanopi-r4s"}}'
|
|
-d '{"event_type": "nanopi-r4s ${{ env.SSH }}", "client_payload": {"target": "nanopi-r4s"}}'
|
|
else
|
|
else
|
|
|
|
+ [ "$REPO_BRANCH" ] && exit 0;
|
|
REPO_BRANCH_r=$(curl -s https://op.supes.top/firmware/x86_64/version.txt | tr "\r\n" "," | cut -f 3 -d ,)
|
|
REPO_BRANCH_r=$(curl -s https://op.supes.top/firmware/x86_64/version.txt | tr "\r\n" "," | cut -f 3 -d ,)
|
|
REPO_BRANCH="$(git ls-remote --tags git://github.com/openwrt/openwrt | cut -d/ -f3- | sort -t. -nk1,2 | awk '/^[^{]*$/{version=$1}END{print version}')"
|
|
REPO_BRANCH="$(git ls-remote --tags git://github.com/openwrt/openwrt | cut -d/ -f3- | sort -t. -nk1,2 | awk '/^[^{]*$/{version=$1}END{print version}')"
|
|
if [ $REPO_BRANCH_r != $REPO_BRANCH ]; then
|
|
if [ $REPO_BRANCH_r != $REPO_BRANCH ]; then
|