Skip to content

Commit 807f2c4

Browse files
committed
Local testing
1 parent 4c2583c commit 807f2c4

File tree

3 files changed

+40
-30
lines changed

3 files changed

+40
-30
lines changed

.changeset/selfish-eagles-destroy.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chainlink/bx-digital-adapter': patch
3+
---
4+
5+
Lol

.github/workflows/release.yml

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Release
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
# The only commits that will contain changes to the masterlist will be releases
4+
pull_request:
85
paths:
9-
- MASTERLIST.md
6+
- 'packages/sources/**'
7+
- 'packages/composites/**'
8+
- 'packages/targets/**'
9+
- 'packages/core/**'
1010
workflow_dispatch:
1111
inputs:
1212
# For this workflow, build-all will cause all adapters to have their image pulled and republished to the public ECR
@@ -86,27 +86,27 @@ jobs:
8686
aws-role: ${{ secrets.AWS_OIDC_IAM_ROLE_ARN }}
8787
aws-ecr-private: false
8888

89-
gh-release:
90-
name: GH Release
91-
runs-on: ubuntu-latest
92-
needs:
93-
- publish-adapter-images
94-
env:
95-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
96-
steps:
97-
- name: Checkout Repo
98-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
99-
- name: Get release version
100-
id: get-version
101-
run: |
102-
echo "result=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
103-
- name: Get release body
104-
run: |
105-
# Get the PR body to use in the GH release body
106-
gh pr list --search "$(git rev-parse HEAD)" --state merged --json number,body --jq '"This release was merged in PR #" + (.[0].number | tostring) + "\n" + (.[0].body | split("\n\n\n# Releases") | .[1])' > pr_body.tmp
107-
- name: Create release
108-
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9
109-
with:
110-
tag_name: v${{ steps.get-version.outputs.result }}
111-
name: Release v${{ steps.get-version.outputs.result }}
112-
body_path: pr_body.tmp
89+
# gh-release:
90+
# name: GH Release
91+
# runs-on: ubuntu-latest
92+
# needs:
93+
# - publish-adapter-images
94+
# env:
95+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
96+
# steps:
97+
# - name: Checkout Repo
98+
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
99+
# - name: Get release version
100+
# id: get-version
101+
# run: |
102+
# echo "result=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
103+
# - name: Get release body
104+
# run: |
105+
# # Get the PR body to use in the GH release body
106+
# gh pr list --search "$(git rev-parse HEAD)" --state merged --json number,body --jq '"This release was merged in PR #" + (.[0].number | tostring) + "\n" + (.[0].body | split("\n\n\n# Releases") | .[1])' > pr_body.tmp
107+
# - name: Create release
108+
# uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9
109+
# with:
110+
# tag_name: v${{ steps.get-version.outputs.result }}
111+
# name: Release v${{ steps.get-version.outputs.result }}
112+
# body_path: pr_body.tmp

packages/sources/bx-digital/src/transport/price.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ export const httpTransport = new HttpTransport<HttpTransportTypes>({
2222
baseURL: config.API_ENDPOINT,
2323
headers: {
2424
'API-key': config.API_KEY,
25-
'User-Agent': config.API_USER_AGENT,
25+
'User-Agent':
26+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',
27+
Accept:
28+
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',
29+
'Accept-Language': 'en-US,en;q=0.5',
30+
Referer: 'https://example.com',
2631
},
2732
},
2833
}

0 commit comments

Comments
 (0)