diff --git a/.github/workflows/casa.yml b/.github/workflows/casa.yml index 4418301..3c90684 100644 --- a/.github/workflows/casa.yml +++ b/.github/workflows/casa.yml @@ -2,21 +2,21 @@ name: Build CasaOS - #on: - # repository_dispatch: - # workflow_dispatch: - # inputs: - # ssh: - # description: 'SSH connection to Actions' - # required: false -# default: 'false' - on: - push: - branches: - - 'main' - tags: - - 'v*' + repository_dispatch: + workflow_dispatch: + inputs: + ssh: + description: 'SSH connection to Actions' + required: false + default: 'false' + +#on: +# push: +# branches: +# - 'main' +# tags: +# - 'v*' env: REPO_URL: https://github.com/IceWhaleTech/CasaOS.git REPO_BRANCH: main @@ -53,8 +53,8 @@ jobs: - name: Set enviroment for github-release run: | - echo "VERSION=$(cat types/system.go | grep CURRENTVERSION | awk '$2 == "CURRENTVERSION"{print $4}' | sed 's/"//g')" >>$GITHUB_ENV - echo "BODY=$(cat types/system.go | grep BODY | awk -F= '{print $2}' | sed 's/"//g')" >>$GITHUB_ENV + echo "VERSION=$(cat /workdir/casa/types/system.go | grep CURRENTVERSION | awk '$2 == "CURRENTVERSION"{print $4}' | sed 's/"//g')" >>$GITHUB_ENV + echo "BODY=$(cat /workdir/casa/types/system.go | grep BODY | awk -F= '{print $2}' | sed 's/"//g')" >>$GITHUB_ENV - name: Clone source code