-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use clasp.json instead of clasprc.json and newer version
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,23 +14,23 @@ jobs: | |
steps: | ||
- name: Install clasp | ||
id: install-clasp | ||
run: sudo npm install @google/[email protected].1 -g | ||
run: sudo npm install @google/[email protected].2 -g | ||
|
||
- name: Write CLASPRC_JSON secret to .clasprc.json file | ||
- name: Write CLASPRC_JSON secret to .clasp.json file | ||
id: write-clasprc | ||
run: echo "$CLASPRC_JSON_SECRET" >> ~/.clasprc.json | ||
run: echo "$CLASPRC_JSON_SECRET" >> ~/.clasp.json | ||
env: | ||
CLASPRC_JSON_SECRET: ${{ secrets.CLASPRC_JSON }} | ||
|
||
- name: Check clasp login status | ||
id: clasp_login | ||
run: clasp login --status | ||
|
||
- name: Save current .clasprc.json contents to CLASPRC_JSON_FILE environment variable | ||
- name: Save current .clasp.json contents to CLASPRC_JSON_FILE environment variable | ||
id: save-clasprc | ||
run: | | ||
echo ::add-mask::$(tr -d '\n\r' < ~/.clasprc.json) | ||
echo "CLASPRC_JSON_FILE=$(tr -d '\n\r' < ~/.clasprc.json)" >> $GITHUB_ENV | ||
echo ::add-mask::$(tr -d '\n\r' < ~/.clasp.json) | ||
echo "CLASPRC_JSON_FILE=$(tr -d '\n\r' < ~/.clasp.json)" >> $GITHUB_ENV | ||
- name: Save CLASPRC_JSON_FILE environment variable to CLASPRC_JSON repo secret | ||
id: set-clasprc-secret | ||
|