diff --git a/.github/workflows/jan-electron-build-nightly.yml b/.github/workflows/jan-electron-build-nightly.yml index b57f4eea1..366f63602 100644 --- a/.github/workflows/jan-electron-build-nightly.yml +++ b/.github/workflows/jan-electron-build-nightly.yml @@ -173,12 +173,14 @@ jobs: name: jan-linux-amd64-${{ steps.version_update.outputs.new_version }} path: ./electron/dist/*.deb - noti-discord-nightly: + noti-discord-nightly-and-update-url-readme: needs: [build-macos, build-windows-x64, build-linux-x64] environment: production if: github.event_name == 'schedule' runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v3 - name: Notify Discord uses: Ilshidur/action-discord@master with: @@ -197,12 +199,14 @@ jobs: env: GITHUB_RUN_ID: ${{ github.run_id }} - noti-discord-manual: + noti-discord-manual-and-update-url-readme: needs: [build-macos, build-windows-x64, build-linux-x64] environment: production if: github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v3 - name: Notify Discord uses: Ilshidur/action-discord@master with: diff --git a/.github/workflows/update-release-url.yml b/.github/workflows/update-release-url.yml index a18cf8f54..8b0be959d 100644 --- a/.github/workflows/update-release-url.yml +++ b/.github/workflows/update-release-url.yml @@ -18,17 +18,24 @@ jobs: - name: Get Latest Release uses: pozetroninc/github-action-get-latest-release@v0.7.0 id: get-latest-release + with: + repository: ${{ github.repository }} - name: Update Download URLs in README.md run: | echo "Latest Release: ${{ steps.get-latest-release.outputs.release }}" - release=$(/bin/echo -n "${{ steps.get-latest-release.outputs.release }}") + tag=$(/bin/echo -n "${{ steps.get-latest-release.outputs.release }}") + echo "Tag: $tag" + # Remove the v prefix + release=${tag:1} + echo "Release: $release" sed -i "s|||" README.md sed -i "s|||" README.md sed -i "s|||" README.md sed -i "s|||" README.md - name: Commit and Push changes + if: github.event_name == 'release' run: | git config --global user.email "service@jan.ai" git config --global user.name "Service Account" diff --git a/README.md b/README.md index 0e9171556..abc393850 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Jan is an open-source ChatGPT alternative that runs 100% offline on your compute