Skip to content
Open
Show file tree
Hide file tree
Changes from 7 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
31 changes: 12 additions & 19 deletions .github/workflows/dev-tools.yml → .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Weekly Dev Tools Update
name: Weekly Script Updates

on:
schedule:
- cron: '0 0 * * 0' # Runs at 00:00 every Sunday
workflow_dispatch: # Allow manual runs
- cron: '0 0 * * 0'
workflow_dispatch:

jobs:
run-dev-tools:
run-weekly-updates:
runs-on: ubuntu-latest

# Needs permissions to create a pull request
permissions:
contents: write
pull-requests: write
Expand All @@ -34,17 +32,16 @@ jobs:
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: npm run dev-tools

- name: Run member-organizations
working-directory: ./scripts
run: npm run member-organizations

- name: Check for differences
id: check_diff
run: |
# Adding main branch fetch just in case we need to diff against it explicitly
# git fetch origin main
# However, typical requirement is diff against the current branch changes,
# which git diff --quiet handles for unstaged/staged differences.
if ! git diff --quiet; then
echo "has_diff=true" >> $GITHUB_OUTPUT

# Check if only "lastUpdated" lines changed
NON_LAST_UPDATED=$(git diff -U0 | grep '^[+-]' | grep -E -v '^(---|\+\+\+)' | grep -v '"lastUpdated":' || true)
OTHER_CHANGES=$(git diff --name-status | grep -v '^M' || true)

Expand All @@ -63,26 +60,22 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
BRANCH_NAME="chore/dev-tools-update-${{ github.run_id }}"
BRANCH_NAME="chore/weekly-updates-${{ github.run_id }}"

# Setup git config
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'

# Commit and push changes
git checkout -b $BRANCH_NAME
git add .
git commit -m "Automated: Weekly Dev Tools Update Changes"
git commit -m "Automated: Weekly Script Updates"
git push -u origin $BRANCH_NAME

# Create Pull Request
gh pr create \
--title "Automated: Weekly Dev Tools Update Changes" \
--body "The weekly GitHub workflow has detected updates in the developer tools. Please review and approve these changes to ensure they are correct." \
--title "Automated: Weekly Script Updates" \
--body "The weekly GitHub workflow has detected updates from dev-tools and member-organizations scripts. Review and approve these changes." \
--label "automated" \
--base main

if [ "${{ steps.check_diff.outputs.only_last_updated }}" == "true" ]; then
echo "Only lastUpdated fields changed. Auto-merging the PR..."
gh pr merge "$BRANCH_NAME" --auto --merge || gh pr merge "$BRANCH_NAME" --merge || gh pr merge "$BRANCH_NAME" --auto --squash || gh pr merge "$BRANCH_NAME" --squash
fi
42 changes: 26 additions & 16 deletions docs/_data/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,30 @@
# - date_display: human-readable date label shown in the table
# - cancelled: optional, renders with strikethrough + "(Cancelled)"

- name: 'W3C TPAC 2026'
url: 'https://www.w3.org/wiki/TPAC/2026'
date: '2026-10-26'
date_display: '26-30 October 2026'

- name: 'W3C WoT PlugFest & Workshop in China'
url: https://www.w3.org/WoT/IG/wiki/Main_WoT_WebConf#Quick_Items_and_Notices_(Informative):~:text=Planning%3A%20W3C%20WoT%20PlugFest%20%26%20Workshop%20in%20China
date: '2026-06-15'
date_display: '15-18 June 2026'

- name: 'W3C TPAC 2025'
url: 'https://www.w3.org/wiki/TPAC/2025'
date: '2025-11-10'
date_display: '1014 November 2025'
date_display: '10-14 November 2025'

- name: 'WoT Week 2024'
url: 'https://www.w3.org/WoT/IG/wiki/Wiki_for_WoT_Week_2024_planning'
date: '2024-11-25'
date_display: '2529 November 2024'
date_display: '25-29 November 2024'

- name: 'W3C TPAC 2024'
url: 'https://www.w3.org/2024/09/TPAC/Overview.html'
date: '2024-09-23'
date_display: '2327 September 2024'
date_display: '23-27 September 2024'

- name: 'IEEE IIWOT 2024'
url: 'https://iiwot24.nws.cs.unibo.it/'
Expand All @@ -26,7 +36,7 @@
- name: 'W3C TPAC 2023'
url: 'https://www.w3.org/2023/09/TPAC/'
date: '2023-09-11'
date_display: '1115 September 2023'
date_display: '11-15 September 2023'

- name: 'W3C WoT Developer Meeting'
url: 'https://github.com/w3c/wot-testing/tree/main/events/2023.03.DevMtg'
Expand All @@ -41,17 +51,17 @@
- name: 'W3C WoT Testfest (December 2022)'
url: 'https://github.com/w3c/wot-testing/tree/main/events/2022.12.Online'
date: '2022-12-12'
date_display: '1216 December 2022'
date_display: '12-16 December 2022'

- name: 'TPAC 2022'
url: 'https://www.w3.org/2022/09/TPAC/Overview.html'
date: '2022-09-12'
date_display: '1216 September 2022'
date_display: '12-16 September 2022'

- name: 'W3C WoT Testfest (June 2022)'
url: 'https://github.com/w3c/wot-testing/tree/main/events/2022.06.Online'
date: '2022-06-06'
date_display: '610 June 2022'
date_display: '6-10 June 2022'

- name: 'Node.js Global Summit'
url: 'https://events.geekle.us/nodejs/'
Expand All @@ -71,7 +81,7 @@
- name: 'Plugfest/Testfest (March 2022)'
url: 'https://github.com/w3c/wot-testing/tree/main/events/2022.03.Online'
date: '2022-03-14'
date_display: '1418 March 2022'
date_display: '14-18 March 2022'

- name: 'W3C Web of Things & ECHONET Lite Web API'
url: 'https://wot-jp-cg.connpass.com/event/239394/'
Expand All @@ -93,15 +103,15 @@
date: '2022-01-08'
date_display: '8 January 2022'

- name: 'IoT Tech Expo Europe 2021 IoT Security Panel'
- name: 'IoT Tech Expo Europe 2021 - IoT Security Panel'
url: 'https://www.iottechexpo.com/europe/'
date: '2021-11-30'
date_display: '30 November 2021'

- name: 'DIoT 2021'
url: 'https://oeg-upm.github.io/DIoT/'
date: '2021-11-08'
date_display: '812 November 2021'
date_display: '8-12 November 2021'
cancelled: true

- name: 'WoT at TPAC 2021'
Expand All @@ -112,7 +122,7 @@
- name: 'TPAC 2021'
url: 'https://www.w3.org/2021/10/TPAC/'
date: '2021-10-18'
date_display: '1829 October 2021'
date_display: '18-29 October 2021'

- name: 'IoT Tech Expo North America 2021'
url: 'https://www.iottechexpo.com/northamerica/track/iot-digital-infrastructures-day-1/'
Expand All @@ -122,27 +132,27 @@
- name: 'RIoT Summit 2021'
url: 'https://summit.riot-os.org/2021/'
date: '2021-09-09'
date_display: '910 September 2021'
date_display: '9-10 September 2021'

- name: 'Virtual F2F Meeting (June 2021)'
url: 'https://www.w3.org/WoT/IG/wiki/F2F_meeting,_June_2021#Virtual_F2F'
date: '2021-06-21'
date_display: '21 June 2 July 2021'
date_display: '21 June - 2 July 2021'

- name: 'Testfest (June 2021)'
url: 'https://www.w3.org/WoT/IG/wiki/F2F_meeting,_June_2021#Testfest'
date: '2021-06-07'
date_display: '711 June 2021'
date_display: '7-11 June 2021'

- name: 'Virtual F2F Meeting (March 2021)'
url: 'https://www.w3.org/WoT/IG/wiki/F2F_meeting,_March_2021'
date: '2021-03-15'
date_display: '1526 March 2021'
date_display: '15-26 March 2021'

- name: 'Virtual F2F PlugFest (March 2021)'
url: 'https://github.com/w3c/wot-testing/blob/master/events/2021.03.Online/README.md'
date: '2021-03-01'
date_display: '15 March 2021'
date_display: '1-5 March 2021'

- name: 'Virtual F2F Meeting (October 2020)'
url: 'https://www.w3.org/WoT/IG/wiki/F2F_meeting,_October_2020'
Expand Down
Loading