diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 34e0305..36b2e63 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -27,14 +27,15 @@ jobs: ]' version: ${{ steps.etherpad-version-cleaned.outputs.version }} steps: - - id: etherpad - uses: pozetroninc/github-action-get-latest-release@master - with: - repository: ether/etherpad-lite - id: etherpad-version-cleaned run: | - LATEST_RELEASE=${{ steps.etherpad.outputs.release }} - CLEANED_VERSION="${LATEST_RELEASE//v/}" + set -euo pipefail + LATEST_TAG="$(curl -fsSL \ + -H 'Accept: application/vnd.github+json' \ + -H 'Authorization: Bearer ${{ github.token }}' \ + https://api.github.com/repos/ether/etherpad-lite/releases/latest \ + | python3 -c "import json,sys; print(json.load(sys.stdin)['tag_name'])")" + CLEANED_VERSION="${LATEST_TAG#v}" echo "version=$CLEANED_VERSION" >> "$GITHUB_OUTPUT" EtherpadWithNginxReverseProxy: diff --git a/.github/workflows/test-file-hashes.yml b/.github/workflows/test-file-hashes.yml index 9876a2a..faf1979 100644 --- a/.github/workflows/test-file-hashes.yml +++ b/.github/workflows/test-file-hashes.yml @@ -29,14 +29,15 @@ jobs: ]' version: ${{ steps.etherpad-version-cleaned.outputs.version }} steps: - - id: etherpad - uses: pozetroninc/github-action-get-latest-release@master - with: - repository: ether/etherpad-lite - id: etherpad-version-cleaned run: | - LATEST_RELEASE=${{ steps.etherpad.outputs.release }} - CLEANED_VERSION="${LATEST_RELEASE//v/}" + set -euo pipefail + LATEST_TAG="$(curl -fsSL \ + -H 'Accept: application/vnd.github+json' \ + -H 'Authorization: Bearer ${{ github.token }}' \ + https://api.github.com/repos/ether/etherpad-lite/releases/latest \ + | python3 -c "import json,sys; print(json.load(sys.stdin)['tag_name'])")" + CLEANED_VERSION="${LATEST_TAG#v}" echo "version=$CLEANED_VERSION" >> "$GITHUB_OUTPUT" TestFileHashes: