Skip to content

Commit fe15850

Browse files
authored
fix twitter script (#60)
1 parent 64b1e2b commit fe15850

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/publish.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ echo "Checked for commands."
4646

4747
echo "Checking for Twitter credentials..."
4848
trap "echo 'Missing Twitter credentials.'; exit 1" ERR
49-
test -f "${WDIR}/scripts/publish/twitter.json"
49+
test -f "${WDIR}/scripts/twitter.json"
5050
trap - ERR
5151
echo "Checked for Twitter credentials..."
5252

@@ -130,7 +130,7 @@ echo "Published release notes."
130130

131131
echo "Making the tweet..."
132132
npm install --no-save twitter@1.7.1
133-
cp -v "${WDIR}/scripts/publish/twitter.json" "${TEMPDIR}/${REPOSITORY_NAME}/scripts/"
134-
node ./scripts/publish/tweet.js ${NEW_VERSION}
133+
cp -v "${WDIR}/scripts/twitter.json" "${TEMPDIR}/${REPOSITORY_NAME}/scripts/"
134+
node ./scripts/tweet.js ${NEW_VERSION}
135135
echo "Made the tweet."
136136

scripts/publish/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ steps:
7979
- name: 'gcr.io/$PROJECT_ID/fft-package-builder'
8080
entrypoint: 'cp'
8181
args:
82-
['-v', 'twitter.json', '${_REPOSITORY_NAME}/scripts/publish/twitter.json']
82+
['-v', 'twitter.json', '${_REPOSITORY_NAME}/scripts/twitter.json']
8383

8484
# Set up the npm credentials.
8585
- name: 'gcr.io/$PROJECT_ID/fft-package-builder'

0 commit comments

Comments
 (0)