Skip to content
Open
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
7 changes: 2 additions & 5 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ addAssignees: false

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- phantsure
- anuragc617
- tiwarishub
- vsvipul
- bishal-pdmsft
- canmarha
- violind4nc3r

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-assign-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Auto-assign issue'
uses: pozil/auto-assign-issue@v1.11.0
uses: pozil/auto-assign-issue@v4.0.1
with:
assignees: phantsure,tiwarishub,anuragc617,vsvipul,bishal-pdmsft
numOfAssignee: 1
2 changes: 1 addition & 1 deletion .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
add-reviews:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/auto-assign-action@v1.2.2
- uses: kentaro-m/auto-assign-action@v2.0.2
51 changes: 51 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v5

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: actions/setup-python@v4
- uses: actions/setup-python@v6
with:
python-version: 3.11

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/stale@v8
- uses: actions/stale@v10
with:
stale-issue-message: 'This issue has become stale and will be closed automatically within a period of time. Sorry about that.'
stale-pr-message: 'This pull request has become stale and will be closed automatically within a period of time. Sorry about that.'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-ghes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git config user.email "cschleiden@github.com"
git config user.name "GitHub Actions"
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
Expand Down
5 changes: 5 additions & 0 deletions ms54971452.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Description": "Domain ownership verification file for Microsoft 365 - place in the website root",
"Domain": "canmarha.github.io",
"Id": "6b334f43-a4cb-450b-a999-19ef621e0347"
}
4 changes: 2 additions & 2 deletions script/sync-ghes/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env npx ts-node
import { promises as fs } from "fs";
import { safeLoad } from "js-yaml";
import { load } from "js-yaml";
import { basename, extname, join } from "path";
import { exec } from "./exec";

Expand Down Expand Up @@ -98,7 +98,7 @@ async function checkWorkflow(
const enabledActionsSet = new Set(enabledActions.map((x) => x.toLowerCase()));
try {
const workflowFileContent = await fs.readFile(workflowPath, "utf8");
const workflow = safeLoad(workflowFileContent);
const workflow = load(workflowFileContent);

for (const job of Object.keys(workflow.jobs || {}).map(
(k) => workflow.jobs[k]
Expand Down
75 changes: 25 additions & 50 deletions script/sync-ghes/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion script/sync-ghes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"typescript": "^3.9.2"
},
"dependencies": {
"js-yaml": "^3.13.1"
"js-yaml": "^4.2.0"
}
}
14 changes: 7 additions & 7 deletions script/validate-data/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env npx ts-node
import { promises as fs } from "fs";
import { safeLoad } from "js-yaml";
import { load } from "js-yaml";
import { basename, extname, join, dirname } from "path";
import { Validator as validator } from "jsonschema";
import { endGroup, error, info, setFailed, startGroup } from '@actions/core';
Expand Down Expand Up @@ -78,7 +78,7 @@ async function checkWorkflow(workflowPath: string, propertiesPath: string, allow
}
try {
const workflowFileContent = await fs.readFile(workflowPath, "utf8");
safeLoad(workflowFileContent); // Validate yaml parses without error
load(workflowFileContent); // Validate yaml parses without error

const propertiesFileContent = await fs.readFile(propertiesPath, "utf8")
const properties: WorkflowProperties = JSON.parse(propertiesFileContent)
Expand Down Expand Up @@ -112,12 +112,12 @@ async function checkWorkflow(workflowPath: string, propertiesPath: string, allow
workflowErrors.errors.push(`Workflow categories cannot be null or empty`)
}
else if(!folder_categories.some(category => properties.categories[0].toLowerCase() == category.toLowerCase())) {
workflowErrors.errors.push(`The first category in properties.json categories for workflow in ${basename(path)} folder must be one of "${folder_categories}. Either move the workflow to an appropriate directory or change the category."`)
workflowErrors.errors.push(`The first category in properties.json categories for workflow in ${basename(path)} folder must be one of "${folder_categories}". Either move the workflow to an appropriate folder or update the first category in its properties.json.`)
}
}

if(basename(path).toLowerCase() == 'deployments' && !properties.creator) {
workflowErrors.errors.push(`The "creator" in properties.json must be present.`)
workflowErrors.errors.push(`The "creator" property in properties.json must be present.`)
}
} catch (e) {
workflowErrors.errors.push(e.toString())
Expand All @@ -133,14 +133,14 @@ async function checkWorkflow(workflowPath: string, propertiesPath: string, allow
)

if (erroredWorkflows.length > 0) {
startGroup(`😟 - Found ${erroredWorkflows.length} workflows with errors:`);
startGroup(`😟 Found ${erroredWorkflows.length} workflows with errors`);
erroredWorkflows.forEach(erroredWorkflow => {
error(`Errors in ${erroredWorkflow.id} - ${erroredWorkflow.errors.map(e => e.toString()).join(", ")}`)
error(`Errors in ${erroredWorkflow.id}: ${erroredWorkflow.errors.map(e => e.toString()).join(", ")}`)
})
endGroup();
setFailed(`Found ${erroredWorkflows.length} workflows with errors`);
} else {
info("🎉🤘 - Found no workflows with errors!")
info("🎉🤘 Found no workflows with errors!")
}
} catch (e) {
error(`Unhandled error while syncing workflows: ${e}`);
Expand Down
Loading
Loading