diff --git a/.github/workflows/search-growth.yml b/.github/workflows/search-growth.yml index f98d0e9..a1f3aff 100644 --- a/.github/workflows/search-growth.yml +++ b/.github/workflows/search-growth.yml @@ -67,18 +67,9 @@ jobs: with: python-version: "3.12" - - name: Prepare stable release evidence - env: - GH_TOKEN: ${{ github.token }} + - name: Prepare deterministic stable release evidence shell: bash - run: | - set -euo pipefail - if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then - cp landing/latest.json /tmp/arsas-published.json - else - gh api "repos/$GITHUB_REPOSITORY/contents/published.json?ref=release-evidence" --jq .content | base64 -d > /tmp/arsas-published.json - fi - + run: cp landing/latest.json /tmp/arsas-published.json - name: Build product website run: python scripts/build-product-site.py --output _site --release-evidence /tmp/arsas-published.json @@ -158,12 +149,9 @@ jobs: create_credentials_file: true export_environment_variables: true - - name: Prepare stable release evidence - env: - GH_TOKEN: ${{ github.token }} + - name: Prepare deterministic stable release evidence shell: bash - run: gh api "repos/$GITHUB_REPOSITORY/contents/published.json?ref=release-evidence" --jq .content | base64 -d > /tmp/arsas-published.json - + run: cp landing/latest.json /tmp/arsas-published.json - name: Build current product website run: python scripts/build-product-site.py --output _site --release-evidence /tmp/arsas-published.json diff --git a/.github/workflows/site-measurement.yml b/.github/workflows/site-measurement.yml index ae93514..53e6b37 100644 --- a/.github/workflows/site-measurement.yml +++ b/.github/workflows/site-measurement.yml @@ -72,18 +72,9 @@ jobs: - name: Install offline report dependency run: python -m pip install --disable-pip-version-check --quiet requests - - name: Prepare stable release evidence - env: - GH_TOKEN: ${{ github.token }} + - name: Prepare deterministic stable release evidence shell: bash - run: | - set -euo pipefail - if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then - cp landing/latest.json /tmp/arsas-published.json - else - gh api "repos/$GITHUB_REPOSITORY/contents/published.json?ref=release-evidence" --jq .content | base64 -d > /tmp/arsas-published.json - fi - + run: cp landing/latest.json /tmp/arsas-published.json - name: Build deterministic website run: python scripts/build-product-site.py --output _site --release-evidence /tmp/arsas-published.json @@ -195,12 +186,9 @@ jobs: create_credentials_file: true export_environment_variables: true - - name: Prepare stable release evidence - env: - GH_TOKEN: ${{ github.token }} + - name: Prepare deterministic stable release evidence shell: bash - run: gh api "repos/$GITHUB_REPOSITORY/contents/published.json?ref=release-evidence" --jq .content | base64 -d > /tmp/arsas-published.json - + run: cp landing/latest.json /tmp/arsas-published.json - name: Build current website run: python scripts/build-product-site.py --output _site --release-evidence /tmp/arsas-published.json