Compare commits

...

9 Commits

Author SHA1 Message Date
8b385ea511 'Add original response to the Gif object in case it doesn't have what you need.' (#1) from v1.0.7 into main
Reviewed-on: #1
2024-09-23 00:21:36 +00:00
1214716605 base_ref -> head_ref
All checks were successful
TenorJS-v2 Deploy Automation / build (pull_request) Successful in 5s
2024-09-22 20:20:58 -04:00
a00b2846d1 action_ref -> base_ref
Some checks failed
TenorJS-v2 Deploy Automation / build (pull_request) Failing after 5s
2024-09-22 20:20:15 -04:00
367f2d8d40 Update variable calls
Some checks failed
TenorJS-v2 Deploy Automation / build (pull_request) Failing after 0s
2024-09-22 20:19:29 -04:00
7bdae6d941 Move action_ref to env
Some checks failed
TenorJS-v2 Deploy Automation / build (pull_request) Failing after 6s
2024-09-22 20:16:58 -04:00
74d2843880 name -> ref
Some checks failed
TenorJS-v2 Deploy Automation / build (pull_request) Failing after 0s
2024-09-22 20:15:58 -04:00
e71bba0448 Change variables to grab branch name
Some checks failed
TenorJS-v2 Deploy Automation / build (pull_request) Failing after 0s
2024-09-22 20:15:16 -04:00
073131bd85 Encapsulate branch name in quotes
Some checks failed
TenorJS-v2 Deploy Automation / build (pull_request) Failing after 0s
2024-09-22 20:13:25 -04:00
b9208cc8f1 Add original response to the Gif object in case it doesn't have what you need.
Some checks failed
TenorJS-v2 Deploy Automation / build (pull_request) Failing after 0s
2024-09-22 20:11:58 -04:00
3 changed files with 5 additions and 3 deletions

View File

@ -8,6 +8,7 @@ on:
env:
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
branch: ${{ github.head_ref }}
jobs:
build:
@ -15,7 +16,7 @@ jobs:
steps:
- name: Pull latest from Git
run: |
echo "${{ gitea.ref_name }}"
echo "$branch"
pwd
whoami
mkdir -p /var/lib/act_runner/
@ -27,7 +28,7 @@ jobs:
cd tenorjs-v2
git pull
fi
git checkout ${{ gitea.ref_name }}
git checkout "$branch"
- name: Run tests
run: |
cd /var/lib/act_runner/tenorjs-v2

View File

@ -1,6 +1,6 @@
{
"name": "tenorjs-v2",
"version": "1.0.6",
"version": "1.0.7",
"description": "A crappy wrapper for Tenor.com API",
"main": "./src/index.js",
"scripts": {

View File

@ -105,6 +105,7 @@ class Gif {
this.id = gif.id;
this.created = gif.created;
this.mediaUrl = gif.media_formats.gif.url;
this.originalResponse = gif;
return this;
}
}