diff --git a/.github/scripts/index.js b/.github/scripts/index.js index c997531c..fa28d5ad 100644 --- a/.github/scripts/index.js +++ b/.github/scripts/index.js @@ -8,15 +8,16 @@ const repoRoot = process.cwd(); console.log('Repo root:', repoRoot); let dirPath; -if (process.argv.includes('--action')) { - // If the script is being run as a GitHub Actions workflow - dirPath = path.join(repoRoot, '../../'); - console.log('Running as a GitHub Action'); - console.log('Directory path:', dirPath); -} else { +if (process.argv.includes('--direct')) { // If the script is being run locally + console.log('Running directly') dirPath = path.join(repoRoot, './static/'); console.log('Directory path:', dirPath); +} else { + // If the script is being run as a GitHub Actions workflow + dirPath = '/home/runner/work/pnp.github.io/pnp.github.io/gh-pages'; + console.log('Running as a GitHub Action'); + console.log('Directory path:', dirPath); } diff --git a/.github/workflows/deploy-hugo.yml b/.github/workflows/deploy-hugo.yml index f346cc5b..e95569fd 100644 --- a/.github/workflows/deploy-hugo.yml +++ b/.github/workflows/deploy-hugo.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true # Fetch Hugo themes (true OR recursive) @@ -27,7 +27,7 @@ jobs: run: hugo - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public \ No newline at end of file diff --git a/.github/workflows/update-ics.yaml b/.github/workflows/update-ics.yaml index b479fa3d..430bbbd0 100644 --- a/.github/workflows/update-ics.yaml +++ b/.github/workflows/update-ics.yaml @@ -1,48 +1,48 @@ -name: Update Calendar Files +name: Update ICAL Files on: - workflow_dispatch: + push: + branches: + - main # Trigger on push to main, or adjust as needed schedule: - - cron: '0 */4 * * *' # Adjust the schedule as necessary - workflow_run: - workflows: ["Deploy Hugo Site"] - types: - - completed - + - cron: '0 12 * * *' # Optionally, schedule to run daily + jobs: - update-and-push: + update-ical: + name: Get ICS and Process runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Checkout gh-pages branch - uses: actions/checkout@v2 - with: - ref: gh-pages # Specify to checkout the gh-pages branch - path: gh-pages - - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Install dependencies - run: npm install - working-directory: .github/scripts - - - name: Run script to update calendar files - run: npm start --action - working-directory: .github/scripts - env: - ICS_URL: ${{ secrets.ICS_URL }} - - - name: Commit and push if there are changes - run: | - cd gh-pages - git config --global user.email "action@github.com" - git config --global user.name "GitHub Action" - git add calendar.ics ical/calendar.json - git commit -m "Update calendar files" -a || echo "No changes to commit" - git push origin gh-pages \ No newline at end of file + + - name: Checkout main branch + uses: actions/checkout@v4 + with: + ref: main # Specify the branch to checkout + path: main + + - name: Checkout gh-pages branch + uses: actions/checkout@v4 + with: + ref: gh-pages # Specify the branch to checkout + path: gh-pages + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '14' # Specify your Node.js version + + - name: Install dependencies + run: npm install # Assuming your script needs npm packages + working-directory: ./main/.github/scripts + + - name: Update ICAL File + run: node index.js --action # Run your specific script + working-directory: ./main/.github/scripts + + - name: Commit and push if there are changes + run: | + cd gh-pages + git config --global user.email "action@github.com" + git config --global user.name "GitHub Action" + git add calendar.ics ical/calendar.json + git commit -m "Update calendar files" -a || echo "No changes to commit" + git push origin gh-pages diff --git a/content/extensions/pnp-ps-extension.md b/content/extensions/pnp-ps-extension.md new file mode 100644 index 00000000..e377e7eb --- /dev/null +++ b/content/extensions/pnp-ps-extension.md @@ -0,0 +1,7 @@ +--- +title: PnP PowerShell extension +description: > + Boost your productivity when creating scripts that use PnP PowerShell. Embedded docs, samples gallery, code snippets, and more. +image: images/extensions-background-pnp-ps.webp +externalLink: "https://marketplace.visualstudio.com/items?itemName=adamwojcikit.pnp-powershell-extension" +--- diff --git a/static/images/extensions-background-pnp-ps.webp b/static/images/extensions-background-pnp-ps.webp new file mode 100644 index 00000000..fc01406a Binary files /dev/null and b/static/images/extensions-background-pnp-ps.webp differ diff --git a/static/invites/ppdevoo-invite.ics b/static/invites/ppdevoo-invite.ics new file mode 100644 index 00000000..0854d8f1 --- /dev/null +++ b/static/invites/ppdevoo-invite.ics @@ -0,0 +1,585 @@ +BEGIN:VCALENDAR +PRODID:-//Microsoft Corporation//Outlook 16.0 MIMEDIR//EN +VERSION:2.0 +METHOD:PUBLISH +X-MS-OLK-FORCEINSPECTOROPEN:TRUE +BEGIN:VTIMEZONE +TZID:Pacific Standard Time +BEGIN:STANDARD +DTSTART:16011104T020000 +RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11 +TZOFFSETFROM:-0700 +TZOFFSETTO:-0800 +END:STANDARD +BEGIN:DAYLIGHT +DTSTART:16010311T020000 +RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3 +TZOFFSETFROM:-0800 +TZOFFSETTO:-0700 +END:DAYLIGHT +END:VTIMEZONE +BEGIN:VEVENT +CLASS:PUBLIC +CREATED:20240522T163359Z +DESCRIPTION:The Microsoft Power Platform Pro/Code-First Developer Office Ho + urs is open to the public. Office Hours is an opportunity to get monthly + updates from various members of the Power Platform product group as well a + s ask questions in an Ask Me Anything (AMA) question and answer session at + the end.\nhttps://aka.ms/ppdevoo-join\nTo learn more about other communit + y programs and initiatives\, please visit https://aka.ms/community/home\nT + hank you for your community support! π€π«Άπ»π§‘π§‘\n \n +DTEND;TZID="Pacific Standard Time":20240516T120000 +DTSTAMP:20240522T163359Z +DTSTART;TZID="Pacific Standard Time":20240516T110000 +LAST-MODIFIED:20240522T163359Z +LOCATION:https://aka.ms/ppdevoo-join +PRIORITY:5 +RRULE:FREQ=MONTHLY;BYDAY=TH;BYSETPOS=3 +SEQUENCE:0 +SUMMARY;LANGUAGE=en-us:Microsoft Power Platform Pro/Code-First Developer Of + fice Hours +TRANSP:OPAQUE +UID:040000008200E00074C5B7101A82E008000000003046395329ACDA01000000000000000 + 01000000054923B33EC4A1142B6A695AD30B4F7CF +X-ALT-DESC;FMTTYPE=text/html:\n
The Microsoft Power Platform Pro/Code-First Developer Off
+ ice Hours is open to the public. \; Office Hours is an opportunity to
+ get monthly updates from various members of the Power Platform product gro
+ up as well as ask questions in an Ask Me Anything (AMA) question and answe
+ r session at the end.
To learn more about
+ other community programs and initiatives\, please visit https://aka.ms/community/home
Thank you for your community support!
+ π€