This action uses clasp to push or deploy to Google Apps Script. This action is running clasp push -f
regardless of whether you select push
or deploy
as the command. This will force the remote manifest to be overwritten.
Required access_token
written in .clasprc.json
.
Required id_token
written in .clasprc.json
.
Required refresh_token
written in .clasprc.json
.
Required clientId
written in .clasprc.json
.
Required clientSecret
written in .clasprc.json
.
Required scriptId
written in .clasp.json
.
Directory where scripts are stored.
Required Command to execute(push
or deploy
).
If deploy
is selected, this action is running clasp push -f
just before.
Deploy works for max. 20 deployments due to Gas limit on active deployments and complexity to determine which deployment should be deleted. Workaround : Set deployId.
Description of the deployment.
Deploy ID that will be updated with this push.
- uses: daikikatsuragawa/clasp-action@v1.1.0
with:
accessToken: ${{ secrets.ACCESS_TOKEN }}
idToken: ${{ secrets.ID_TOKEN }}
refreshToken: ${{ secrets.REFRESH_TOKEN }}
clientId: ${{ secrets.CLIENT_ID }}
clientSecret: ${{ secrets.CLIENT_SECRET }}
scriptId: ${{ secrets.SCRIPT_ID }}
command: 'push'
- uses: daikikatsuragawa/clasp-action@v1.1.0
with:
accessToken: ${{ secrets.ACCESS_TOKEN }}
idToken: ${{ secrets.ID_TOKEN }}
refreshToken: ${{ secrets.REFRESH_TOKEN }}
clientId: ${{ secrets.CLIENT_ID }}
clientSecret: ${{ secrets.CLIENT_SECRET }}
scriptId: ${{ secrets.SCRIPT_ID }}
command: 'deploy'
- uses: daikikatsuragawa/clasp-action@v1.1.0
with:
accessToken: ${{ secrets.ACCESS_TOKEN }}
idToken: ${{ secrets.ID_TOKEN }}
refreshToken: ${{ secrets.REFRESH_TOKEN }}
clientId: ${{ secrets.CLIENT_ID }}
clientSecret: ${{ secrets.CLIENT_SECRET }}
scriptId: ${{ secrets.SCRIPT_ID }}
command: 'deploy'
description: 'Sample description'
- uses: daikikatsuragawa/clasp-action@v1.1.0
with:
accessToken: ${{ secrets.ACCESS_TOKEN }}
idToken: ${{ secrets.ID_TOKEN }}
refreshToken: ${{ secrets.REFRESH_TOKEN }}
clientId: ${{ secrets.CLIENT_ID }}
clientSecret: ${{ secrets.CLIENT_SECRET }}
scriptId: ${{ secrets.SCRIPT_ID }}
rootDir: 'src'
command: 'push'
- uses: daikikatsuragawa/clasp-action@v1.1.0
with:
accessToken: ${{ secrets.ACCESS_TOKEN }}
idToken: ${{ secrets.ID_TOKEN }}
refreshToken: ${{ secrets.REFRESH_TOKEN }}
clientId: ${{ secrets.CLIENT_ID }}
clientSecret: ${{ secrets.CLIENT_SECRET }}
scriptId: ${{ secrets.SCRIPT_ID }}
command: 'deploy'
deployId: ${{ secrets.DEPLOY_ID }}
This code is made available under the MIT license.