Skip to content

Commit 0f70695

Browse files
committed
Merge branch 'dev' into releases/v2
2 parents e9b926d + 6a6f0aa commit 0f70695

File tree

12 files changed

+1756
-1570
lines changed

12 files changed

+1756
-1570
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6.0.1
1919

20-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@v6.1.0
2121
with:
2222
node-version-file: '.node-version'
2323
registry-url: 'https://registry.npmjs.org'
@@ -33,6 +33,6 @@ jobs:
3333
yarn test
3434
3535
- name: Uploade CodeCov Report
36-
uses: codecov/codecov-action@v4.6.0
36+
uses: codecov/codecov-action@v5.5.2
3737
with:
3838
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/integration.yml

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout 🛎️
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6.0.1
1818
with:
1919
persist-credentials: false
2020

@@ -42,50 +42,3 @@ jobs:
4242
folder: fetch-api-data-custom
4343
target-folder: data
4444
ssh-key: ${{ secrets.DEPLOY_KEY }}
45-
46-
refresh-api-data-modified-formatting-encoding:
47-
runs-on: ubuntu-latest
48-
needs: refresh-api-data
49-
steps:
50-
- name: Checkout 🛎️
51-
uses: actions/checkout@v4
52-
with:
53-
persist-credentials: false
54-
55-
- name: Fetch Hex encoded Data 📦
56-
uses: JamesIves/fetch-api-data-action@v2
57-
with:
58-
endpoint: https://hexendpoint-y87ci26b7sb3.runkit.sh/
59-
save-location: fetch-api-data-custom-encoding
60-
save-name: hexendpointdata
61-
encoding: hex
62-
format: txt
63-
retry: true
64-
65-
- name: Fetch Base64 Data 📦
66-
id: validate
67-
uses: JamesIves/fetch-api-data-action@v2
68-
with:
69-
endpoint: https://base64endpoint-hfdurtfq9iyz.runkit.sh/
70-
save-location: fetch-api-data-custom-encoding
71-
save-name: base64endpointdata
72-
encoding: base64
73-
format: txt
74-
variable-name: CATS
75-
retry: true
76-
77-
- name: Access environment variable output
78-
run: |
79-
echo "${CATS}"
80-
81-
- name: Access step output
82-
run: |
83-
echo "Output: ${{ steps.validate.outputs.fetchApiData }}"
84-
85-
- name: Build and Deploy Repo 🚀
86-
uses: JamesIves/github-pages-deploy-action@v4
87-
with:
88-
branch: gh-pages
89-
folder: fetch-api-data-custom-encoding
90-
target-folder: encoding
91-
ssh-key: ${{ secrets.DEPLOY_KEY }}

.github/workflows/label.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
if: github.event.pull_request.merged == false
1616
steps:
1717
- name: Checkout 🛎️
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6.0.1
1919

2020
- name: Assign Labels 🏷️
2121
id: action-assign-labels
22-
uses: mauroalderete/action-assign-labels@v1
22+
uses: mauroalderete/action-assign-labels@v1.5.1
2323
with:
2424
pull-request-number: ${{ github.event.pull_request.number }}
2525
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/production.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6.0.1
1919

20-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@v6.1.0
2121
with:
2222
node-version-file: '.node-version'
2323
registry-url: 'https://registry.npmjs.org'

.github/workflows/sponsors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout 🛎️
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6.0.1
1414

1515
- name: Generate Sponsors 💖
1616
uses: JamesIves/github-sponsors-readme-action@v1

.github/workflows/version.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
name: Publish to Registries 📦
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v6.0.1
2626
with:
2727
ref: dev
2828

2929
# Setup .npmrc file to publish to npm
30-
- uses: actions/setup-node@v4
30+
- uses: actions/setup-node@v6.1.0
3131
with:
3232
node-version-file: '.node-version'
3333
registry-url: 'https://registry.npmjs.org'
@@ -58,7 +58,7 @@ jobs:
5858
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5959

6060
# Setup .npmrc file to publish to GitHub Packages
61-
- uses: actions/setup-node@v4
61+
- uses: actions/setup-node@v6.1.0
6262
with:
6363
node-version-file: '.node-version'
6464
registry-url: 'https://npm.pkg.github.com'

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22.11.0
1+
v24.13.0

README.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,6 @@
88
Fetch API Data Action 📦 🚚
99
</h1>
1010

11-
<p align="center">
12-
<a href="https://github.com/JamesIves/fetch-api-data-action/actions">
13-
<img src="https://github.com/JamesIves/fetch-api-data-action/workflows/unit-tests/badge.svg">
14-
</a>
15-
16-
<a href="https://github.com/JamesIves/fetch-api-data-action/actions">
17-
<img src="https://github.com/JamesIves/fetch-api-data-action/workflows/integration-tests/badge.svg">
18-
</a>
19-
20-
<a href="https://codecov.io/gh/JamesIves/fetch-api-data-action/branch/dev">
21-
<img src="https://codecov.io/gh/JamesIves/fetch-api-data-action/branch/dev/graph/badge.svg">
22-
</a>
23-
24-
<a href="https://github.com/JamesIves/fetch-api-data-action/releases">
25-
<img src="https://img.shields.io/github/v/release/JamesIves/fetch-api-data-action.svg?logo=github">
26-
</a>
27-
28-
<a href="https://github.com/marketplace/actions/fetch-api-data">
29-
<img src="https://img.shields.io/badge/action-marketplace-blue.svg?logo=github&color=orange">
30-
</a>
31-
</p>
32-
3311
<p align="center">
3412
This <a href="https://github.com/features/actions">GitHub Action</a> will handle authenticated API requests for you, allowing you to save the data from the request into your workspace as an environment variable and a file. Using this action will allow you to save data from these queries on a schedule so they can be used in a static page without exposing your API credentials. You can read more about the inspiration for this action <a href="https://jamesiv.es/blog/github/actions/2020/03/07/fetching-authenticated-api-data/">here</a>.
3513
</p>
@@ -43,11 +21,11 @@
4321
</p>
4422

4523
<p align="center">
46-
<!-- premium --><a href="https://github.com/github"><img src="https://github.com/github.png" width="80px" alt="github" /></a>&nbsp;&nbsp;<a href="https://github.com/annegentle"><img src="https://github.com/annegentle.png" width="80px" alt="annegentle" /></a>&nbsp;&nbsp;<a href="https://github.com/tonjohn"><img src="https://github.com/tonjohn.png" width="80px" alt="tonjohn" /></a>&nbsp;&nbsp;<!-- premium -->
24+
<!-- premium --><a href="https://github.com/github"><img src="https://github.com/github.png" width="80px" alt="github" /></a>&nbsp;&nbsp;<a href="https://github.com/annegentle"><img src="https://github.com/annegentle.png" width="80px" alt="annegentle" /></a>&nbsp;&nbsp;<a href="https://github.com/tonjohn"><img src="https://github.com/tonjohn.png" width="80px" alt="tonjohn" /></a>&nbsp;&nbsp;<a href="https://github.com/Zhenglei-BCS"><img src="https://github.com/Zhenglei-BCS.png" width="80px" alt="Zhenglei-BCS" /></a>&nbsp;&nbsp;<!-- premium -->
4725
</p>
4826

4927
<p align="center">
50-
<!-- sponsors --><a href="https://github.com/Chooksta69"><img src="https://github.com/Chooksta69.png" width="50px" alt="Chooksta69" /></a>&nbsp;&nbsp;<a href="https://github.com/MattWillFlood"><img src="https://github.com/MattWillFlood.png" width="50px" alt="MattWillFlood" /></a>&nbsp;&nbsp;<a href="https://github.com/jonathan-milan-pollock"><img src="https://github.com/jonathan-milan-pollock.png" width="50px" alt="jonathan-milan-pollock" /></a>&nbsp;&nbsp;<a href="https://github.com/raoulvdberge"><img src="https://github.com/raoulvdberge.png" width="50px" alt="raoulvdberge" /></a>&nbsp;&nbsp;<a href="https://github.com/robjtede"><img src="https://github.com/robjtede.png" width="50px" alt="robjtede" /></a>&nbsp;&nbsp;<a href="https://github.com/hadley"><img src="https://github.com/hadley.png" width="50px" alt="hadley" /></a>&nbsp;&nbsp;<a href="https://github.com/kevinchalet"><img src="https://github.com/kevinchalet.png" width="50px" alt="kevinchalet" /></a>&nbsp;&nbsp;<a href="https://github.com/Yousazoe"><img src="https://github.com/Yousazoe.png" width="50px" alt="Yousazoe" /></a>&nbsp;&nbsp;<a href="https://github.com/planetoftheweb"><img src="https://github.com/planetoftheweb.png" width="50px" alt="planetoftheweb" /></a>&nbsp;&nbsp;<a href="https://github.com/melton1968"><img src="https://github.com/melton1968.png" width="50px" alt="melton1968" /></a>&nbsp;&nbsp;<a href="https://github.com/szepeviktor"><img src="https://github.com/szepeviktor.png" width="50px" alt="szepeviktor" /></a>&nbsp;&nbsp;<a href="https://github.com/sckott"><img src="https://github.com/sckott.png" width="50px" alt="sckott" /></a>&nbsp;&nbsp;<a href="https://github.com/provinzkraut"><img src="https://github.com/provinzkraut.png" width="50px" alt="provinzkraut" /></a>&nbsp;&nbsp;<a href="https://github.com/electrovir"><img src="https://github.com/electrovir.png" width="50px" alt="electrovir" /></a>&nbsp;&nbsp;<a href="https://github.com/Griefed"><img src="https://github.com/Griefed.png" width="50px" alt="Griefed" /></a>&nbsp;&nbsp;<a href="https://github.com/MontezumaIves"><img src="https://github.com/MontezumaIves.png" width="50px" alt="MontezumaIves" /></a>&nbsp;&nbsp;<a href="https://github.com/wylie"><img src="https://github.com/wylie.png" width="50px" alt="wylie" /></a>&nbsp;&nbsp;<!-- sponsors -->
28+
<!-- sponsors --><a href="https://github.com/Chooksta69"><img src="https://github.com/Chooksta69.png" width="50px" alt="Chooksta69" /></a>&nbsp;&nbsp;<a href="https://github.com/MattWillFlood"><img src="https://github.com/MattWillFlood.png" width="50px" alt="MattWillFlood" /></a>&nbsp;&nbsp;<a href="https://github.com/jonathan-milan-pollock"><img src="https://github.com/jonathan-milan-pollock.png" width="50px" alt="jonathan-milan-pollock" /></a>&nbsp;&nbsp;<a href="https://github.com/raoulvdberge"><img src="https://github.com/raoulvdberge.png" width="50px" alt="raoulvdberge" /></a>&nbsp;&nbsp;<a href="https://github.com/robjtede"><img src="https://github.com/robjtede.png" width="50px" alt="robjtede" /></a>&nbsp;&nbsp;<a href="https://github.com/hadley"><img src="https://github.com/hadley.png" width="50px" alt="hadley" /></a>&nbsp;&nbsp;<a href="https://github.com/kevinchalet"><img src="https://github.com/kevinchalet.png" width="50px" alt="kevinchalet" /></a>&nbsp;&nbsp;<a href="https://github.com/Yousazoe"><img src="https://github.com/Yousazoe.png" width="50px" alt="Yousazoe" /></a>&nbsp;&nbsp;<a href="https://github.com/planetoftheweb"><img src="https://github.com/planetoftheweb.png" width="50px" alt="planetoftheweb" /></a>&nbsp;&nbsp;<a href="https://github.com/melton1968"><img src="https://github.com/melton1968.png" width="50px" alt="melton1968" /></a>&nbsp;&nbsp;<a href="https://github.com/szepeviktor"><img src="https://github.com/szepeviktor.png" width="50px" alt="szepeviktor" /></a>&nbsp;&nbsp;<a href="https://github.com/sckott"><img src="https://github.com/sckott.png" width="50px" alt="sckott" /></a>&nbsp;&nbsp;<a href="https://github.com/provinzkraut"><img src="https://github.com/provinzkraut.png" width="50px" alt="provinzkraut" /></a>&nbsp;&nbsp;<a href="https://github.com/electrovir"><img src="https://github.com/electrovir.png" width="50px" alt="electrovir" /></a>&nbsp;&nbsp;<a href="https://github.com/Griefed"><img src="https://github.com/Griefed.png" width="50px" alt="Griefed" /></a>&nbsp;&nbsp;<a href="https://github.com/MontezumaIves"><img src="https://github.com/MontezumaIves.png" width="50px" alt="MontezumaIves" /></a>&nbsp;&nbsp;<a href="https://github.com/wylie"><img src="https://github.com/wylie.png" width="50px" alt="wylie" /></a>&nbsp;&nbsp;<a href="https://github.com/pylapp"><img src="https://github.com/pylapp.png" width="50px" alt="pylapp" /></a>&nbsp;&nbsp;<a href="https://github.com/leoxeno"><img src="https://github.com/leoxeno.png" width="50px" alt="leoxeno" /></a>&nbsp;&nbsp;<!-- sponsors -->
5129
</p>
5230

5331
## Getting Started ✈️

__tests__/fetch.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ describe('fetch', () => {
161161
})
162162
} catch (error) {
163163
expect(error instanceof Error && error.message).toBe(
164-
"There was an error generating the export file: TypeError [ERR_INVALID_ARG_VALUE]: The argument 'hexxxxx' is invalid encoding. Received 'encoding' ❌"
164+
"There was an error generating the export file: TypeError [ERR_INVALID_ARG_VALUE]: The argument 'encoding' is invalid encoding. Received 'hexxxxx' ❌"
165165
)
166166
}
167167
})

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'Fetch API Data'
22
description: 'This action will handle authenticated API requests, allowing you to save the data from the request into your workspace.'
33
author: 'James Ives <iam@jamesiv.es>'
44
runs:
5-
using: 'node20'
5+
using: 'node24'
66
main: 'lib/main.js'
77
branding:
88
icon: 'truck'

0 commit comments

Comments
 (0)