Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .clasp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"scriptId": "1CXDCY5sqT9ph64fFwSzVtXnbjpSfWdRymafDrtIZ7Z_hwysTY7IIhi7s",
"rootDir": "src/",
"fileExtension": "gs"
}

30 changes: 30 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: release-please-action
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.pr }}
- uses: actions/setup-node@v1
if: ${{ steps.release.outputs.release_created }}
with:
node-version: 16
- name: Write test credentials
if: ${{ steps.release.outputs.release_created }}
run: |
echo "${CLASP_CREDENTIALS}" > "${HOME}/.clasprc.json"
env:
CLASP_CREDENTIALS: ${{secrets.LIBRARIES_OWNER_CLASP_TOKEN}}
- name: Depoy scripts
if: ${{ steps.release.outputs.release_created }}
run: |
npx @google/clasp push
npx @google/clasp version
29 changes: 29 additions & 0 deletions .github/workflows/update-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on: [pull_request]
name: Update dist folder
jobs:
update-dist-src:
if: |
${{ contains(github.event.pull_request.labels.*.name, "autorelease: pending") }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GOOGLEWORKSPACE_BOT_TOKEN }}
- uses: actions/setup-node@v1
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Generate dist
run: npm run dist
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
- name: Push changes
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name 'Google Workspace Bot'
git config --global user.email 'googleworkspace-bot@google.com'
git commit -am "chore: Update dist/ directory"
git push
11 changes: 11 additions & 0 deletions src/appsscript.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"timeZone": "America/New_York",
"dependencies": {
"libraries": [{
"userSymbol": "Underscore",
"libraryId": "1I21uLOwDKdyF3_W_hvh6WXiIKWJWno8yG9lB8lf1VBnZFQ6jAAhyNTRG",
"version": "24"
}]
},
"exceptionLogging": "STACKDRIVER"
}