-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
647 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
with: | ||
persist-credentials: false | ||
|
||
- name: Fetch Data 📦 | ||
- name: Fetch UTF8 Data 📦 | ||
uses: JamesIves/fetch-api-data-action@v2 | ||
with: | ||
endpoint: https://jsonplaceholder.typicode.com/todos/1 | ||
|
@@ -31,7 +31,7 @@ jobs: | |
retry: true | ||
|
||
- name: Build and Deploy Repo 🚀 | ||
uses: JamesIves/[email protected].2 | ||
uses: JamesIves/[email protected].5 | ||
with: | ||
branch: gh-pages | ||
folder: fetch-api-data-custom | ||
|
@@ -40,24 +40,35 @@ jobs: | |
|
||
refresh-api-data-modified-formatting-encoding: | ||
runs-on: ubuntu-latest | ||
needs: refresh-api-data | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Fetch Data 📦 | ||
- name: Fetch Hex encoded Data 📦 | ||
uses: JamesIves/fetch-api-data-action@v2 | ||
with: | ||
endpoint: https://jsonplaceholder.typicode.com/todos/1 | ||
endpoint: https://hexendpoint-y87ci26b7sb3.runkit.sh/ | ||
save-location: fetch-api-data-custom-encoding | ||
save-name: todo2 | ||
save-name: hexendpointdata | ||
encoding: hex | ||
format: txt | ||
retry: true | ||
|
||
- name: Fetch Base64 Data 📦 | ||
uses: JamesIves/fetch-api-data-action@v2 | ||
with: | ||
endpoint: https://base64endpoint-hfdurtfq9iyz.runkit.sh/ | ||
save-location: fetch-api-data-custom-encoding | ||
save-name: base64endpointdata | ||
encoding: base64 | ||
format: txt | ||
retry: true | ||
|
||
- name: Build and Deploy Repo 🚀 | ||
uses: JamesIves/[email protected].2 | ||
uses: JamesIves/[email protected].5 | ||
with: | ||
branch: gh-pages | ||
folder: fetch-api-data-custom-encoding | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,21 @@ jobs: | |
with: | ||
token: ${{ secrets.PAT }} | ||
file: 'README.md' | ||
template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="50px" alt="" /></a>' | ||
minimum: 500 | ||
template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="50px" alt="{{{ login }}}" /></a> ' | ||
maximum: 9999 | ||
|
||
- name: Generate Sponsors 💖 | ||
uses: JamesIves/[email protected] | ||
with: | ||
token: ${{ secrets.PAT }} | ||
file: 'README.md' | ||
minimum: 10000 | ||
template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="80px" alt="{{{ login }}}" /></a> ' | ||
marker: 'premium' | ||
|
||
|
||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/[email protected].2 | ||
uses: JamesIves/[email protected].5 | ||
with: | ||
branch: dev | ||
folder: '.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ jobs: | |
name: Update Major Version Tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: nowactions/[email protected].0 | ||
- uses: nowactions/[email protected].2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@jamesives/fetch-api-data-action", | ||
"description": "GitHub action for handling authenticated API requests, allowing you to save the data from the request into your workspace as an environment variable and a .json file.", | ||
"author": "James Ives <[email protected]> (https://jamesiv.es)", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"license": "MIT", | ||
"main": "lib/lib.js", | ||
"types": "lib/lib.d.ts", | ||
|
@@ -36,25 +36,25 @@ | |
"@actions/core": "1.6.0", | ||
"@actions/io": "1.1.1", | ||
"async-retry": "1.3.3", | ||
"cross-fetch": "3.1.4", | ||
"cross-fetch": "3.1.5", | ||
"mustache": "4.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/async-retry": "1.4.3", | ||
"@types/jest": "27.4.0", | ||
"@types/jest": "27.4.1", | ||
"@types/mustache": "4.1.2", | ||
"@types/node": "17.0.8", | ||
"@typescript-eslint/eslint-plugin": "5.9.1", | ||
"@typescript-eslint/parser": "5.9.1", | ||
"eslint": "8.6.0", | ||
"@types/node": "17.0.19", | ||
"@typescript-eslint/eslint-plugin": "5.11.0", | ||
"@typescript-eslint/parser": "5.11.0", | ||
"eslint": "8.9.0", | ||
"eslint-config-prettier": "8.3.0", | ||
"eslint-plugin-jest": "25.3.4", | ||
"eslint-plugin-jest": "26.1.1", | ||
"eslint-plugin-prettier": "4.0.0", | ||
"jest": "27.4.7", | ||
"jest-circus": "27.4.6", | ||
"nock": "13.2.2", | ||
"jest": "27.5.1", | ||
"jest-circus": "27.5.1", | ||
"nock": "13.2.4", | ||
"prettier": "2.5.1", | ||
"ts-jest": "27.1.2", | ||
"typescript": "4.5.4" | ||
"ts-jest": "27.1.3", | ||
"typescript": "4.5.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.