Skip to content

Commit

Permalink
Back out the sha256 stuff and try without it
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Nov 15, 2024
1 parent 7eb94d4 commit bcd677d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ env:
HOMEBREW_STABLE_REPOSITORY: ${{ vars.HOMEBREW_STABLE_REPOSITORY }}
REPOSITORY_OWNER: ${{ github.repository_owner }}
DOCKER_ORG: ${{ vars.DOCKER_ORG }}
HEAD_ARTIFACTS_SHA: blank-for-now

permissions:
packages: write
Expand Down Expand Up @@ -313,21 +312,21 @@ jobs:
artifacts/*.zip
artifacts/checksums.txt
- name: Get SHA of uploaded artifact
run: |
# Get the artifact ID
ARTIFACT_ID=$(gh api /repos/${{ github.repository }}/actions/artifacts \
--jq '.artifacts[] | select(.name=="ddev-head-artifacts") | .id' \
--header "authorization: Bearer ${{ github.token }}")
# Download the artifact directly from GitHub
gh api /repos/${{ github.repository }}/actions/artifacts/$ARTIFACT_ID/zip \
--header "authorization: Bearer ${{ github.token }}" \
-H "Accept: application/vnd.github.v3.raw" \
--output head-artifacts.zip
ls -l head-artifacts.zip && sha256sum head-artifacts.zip
echo "HEAD_ARTIFACTS_SHA=$(sha256sum head-artifacts.zip | cut -d' ' -f1)" >> $GITHUB_ENV
# - name: Get SHA of uploaded artifact
# run: |
# # Get the artifact ID
# ARTIFACT_ID=$(gh api /repos/${{ github.repository }}/actions/artifacts \
# --jq '.artifacts[] | select(.name=="ddev-head-artifacts") | .id' \
# --header "authorization: Bearer ${{ github.token }}")
#
# # Download the artifact directly from GitHub
# gh api /repos/${{ github.repository }}/actions/artifacts/$ARTIFACT_ID/zip \
# --header "authorization: Bearer ${{ github.token }}" \
# -H "Accept: application/vnd.github.v3.raw" \
# --output head-artifacts.zip
#
# ls -l head-artifacts.zip && sha256sum head-artifacts.zip
# echo "HEAD_ARTIFACTS_SHA=$(sha256sum head-artifacts.zip | cut -d' ' -f1)" >> $GITHUB_ENV

- name: Show github.ref
run: echo ${{ github.ref }}
Expand Down
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ brews:
url "https://github.com/{{ .Env.REPOSITORY_OWNER }}/ddev.git", branch: "master"
resource "ddev-artifacts" do
url "https://nightly.link/{{ .Env.REPOSITORY_OWNER }}/ddev/workflows/master-build/master/ddev-head-artifacts.zip"
sha256 "{{ .Env.HEAD_ARTIFACTS_SHA }}"
end
end
install: |
Expand Down Expand Up @@ -236,7 +235,6 @@ brews:
url "https://github.com/{{ .Env.REPOSITORY_OWNER }}/ddev.git", branch: "master"
resource "ddev-artifacts" do
url "https://nightly.link/{{ .Env.REPOSITORY_OWNER }}/ddev/workflows/master-build/master/ddev-head-artifacts.zip"
sha256 "{{ .Env.HEAD_ARTIFACTS_SHA }}"
end
end
install: |
Expand Down

0 comments on commit bcd677d

Please sign in to comment.