Add original response to the Gif object in case it doesn't have what you need. #1
@ -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
|
||||
|
@ -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": {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user