Skip to content

Add GitHub Actions workflow to schedule milestones weekly #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
24 changes: 24 additions & 0 deletions .github/workflows/schedule-milestones.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: schedule-milestones

on:
schedule:
- cron: 0 0 * * SUN # Run every Sunday at midnight

jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Schedule Milestones
uses: readmeio/[email protected]
id: scheduled
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: 'S-'
days: Thursday
count: 4
format: YYYY-MM-DD

- name: Created Milestones
run: echo ${{ steps.scheduled.outputs.milestones }}
10 changes: 9 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default defineNuxtConfig({

auth: {
originEnvKey: 'NUXT_PUBLIC_AUTH_BASE_URL',
baseURL: process.env.NUXT_PUBLIC_AUTH_BASE_URL ?? '',
baseURL: 'https://community.api.prod.josa.ngo/v2/auth/',
provider: {
type: 'local',
endpoints: {
Expand All @@ -105,6 +105,14 @@ export default defineNuxtConfig({
secureCookieAttribute: true,
httpOnlyCookieAttribute: true, // NOTE: disable in local development
},
session: {
dataType: {
id: 'string',
username: 'string',
iat: 'number',
exp: 'number',
},
},
},
},

Expand Down