Skip to content

Commit 4a245ec

Browse files
committed
Enable manual runs of workflows + add scope to auth script
1 parent eede25c commit 4a245ec

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/scripts/authorize.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
SCOPES=(
2121
"https://www.googleapis.com/auth/drive"
2222
"https://www.googleapis.com/auth/drive.activity"
23+
"https://www.googleapis.com/auth/drive.appdata"
2324
"https://mail.google.com/"
2425
"https://www.googleapis.com/auth/classroom.courses"
2526
"https://www.googleapis.com/auth/classroom.announcements"
@@ -41,7 +42,7 @@ fi
4142

4243
printf -v EXPANDED_SCOPES '%s,' "${SCOPES[@]}"
4344
gcloud auth application-default login \
44-
--client-id-file=client_secret.json \
45+
--client-id-file="$CLIENT_ID_FILE" \
4546
--scopes="${EXPANDED_SCOPES}"
4647

4748
cat "${HOME}/.config/gcloud/application_default_credentials.json"

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8+
workflow_dispatch:
9+
branches: [ master ]
810

911
jobs:
1012
test:
13+
concurrency:
14+
group: ${{ github.head_ref || github.ref }}
15+
cancel-in-progress: true
1116
# Only run for internal PRs or after a merge
1217
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
1318
runs-on: ubuntu-latest

.github/workflows/lint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
pull_request:
2020
branches:
2121
- master
22+
workflow_dispatch:
23+
branches: [ master ]
24+
2225
jobs:
2326
lint:
2427
concurrency:

0 commit comments

Comments
 (0)