You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/02/22 22:28:54 UTC
(opendal) branch Xuanwo-patch-1 created (now c0c2afe9e)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a change to branch Xuanwo-patch-1
in repository https://gitbox.apache.org/repos/asf/opendal.git
at c0c2afe9e ci: Delete .github/workflows/ci_weekly_update.yml
This branch includes the following new commits:
new c0c2afe9e ci: Delete .github/workflows/ci_weekly_update.yml
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(opendal) 01/01: ci: Delete .github/workflows/ci_weekly_update.yml
Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch Xuanwo-patch-1
in repository https://gitbox.apache.org/repos/asf/opendal.git
commit c0c2afe9eedbe578a2ddfc99697f96a3d6b52b13
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Feb 23 06:28:47 2026 +0800
ci: Delete .github/workflows/ci_weekly_update.yml
Noboday really read them and it's much easier to just let codex to do it.
---
.github/workflows/ci_weekly_update.yml | 142 ---------------------------------
1 file changed, 142 deletions(-)
diff --git a/.github/workflows/ci_weekly_update.yml b/.github/workflows/ci_weekly_update.yml
deleted file mode 100644
index 5a3ebe9d8..000000000
--- a/.github/workflows/ci_weekly_update.yml
+++ /dev/null
@@ -1,142 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-name: Weekly OpenDAL Update
-
-on:
- schedule:
- # Runs at 00:00 UTC every Sunday
- - cron: "0 0 * * 0"
- workflow_dispatch: # This allows manual triggering of the workflow
-
-permissions:
- discussions: write
- contents: read
-
-jobs:
- generate-and-publish:
- runs-on: ubuntu-latest
- if: github.repository == 'apache/opendal'
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v6
-
- - name: Set up Python
- uses: actions/setup-python@v6
- with:
- python-version: "3.12"
-
- - name: Install UV
- run: |
- pip install uv ruff
-
- - name: Install dependencies with UV
- working-directory: .github/scripts/weekly_update
- run: |
- uv pip install --system -e .
-
- - name: Setup 1Password Connect
- uses: 1password/load-secrets-action/configure@v3
- with:
- connect-host: ${{ secrets.OP_CONNECT_HOST }}
- connect-token: ${{ secrets.OP_CONNECT_TOKEN }}
-
- - name: Setup
- uses: 1password/load-secrets-action@13f58eec611f8e5db52ec16247f58c508398f3e6 # v3
- with:
- export-env: true
- env:
- OPENAI_API_BASE: op://services/openai/api_base
- OPENAI_API_KEY: op://services/openai/api_key
- OPENAI_MODEL: op://services/openai/model
-
- - name: Generate weekly update
- working-directory: .github/scripts/weekly_update
- id: generate
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- # Run your Python script and save the output to a file
- python main.py apache/opendal --output weekly_update.md
-
- # Set the date in the format "Month Day, Year"
- TITLE_DATE=$(date +"%B %d, %Y")
- echo "TITLE_DATE=$TITLE_DATE" >> $GITHUB_ENV
-
- - name: Create GitHub Discussion
- uses: actions/github-script@v8
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- script: |
- const fs = require('fs');
-
- // Read the weekly update content directly from file
- const weeklyUpdateContent = fs.readFileSync('.github/scripts/weekly_update/weekly_update.md', 'utf8');
- const discussionTitle = `${process.env.TITLE_DATE}: This Week in OpenDAL`;
-
- // Get repository node ID using GraphQL
- const repoQuery = `
- query {
- repository(owner: "${context.repo.owner}", name: "${context.repo.repo}") {
- id
- discussionCategories(first: 10) {
- nodes {
- id
- name
- }
- }
- }
- }
- `;
-
- const repoResult = await github.graphql(repoQuery);
- const repositoryId = repoResult.repository.id;
-
- // Find the "General" category
- const categories = repoResult.repository.discussionCategories.nodes;
- const generalCategory = categories.find(category => category.name === 'General');
-
- if (!generalCategory) {
- core.setFailed("Could not find 'General' discussion category. Make sure Discussions are enabled for this repository.");
- return;
- }
-
- // Create the discussion using GraphQL API
- const createDiscussionMutation = `
- mutation {
- createDiscussion(input: {
- repositoryId: "${repositoryId}",
- categoryId: "${generalCategory.id}",
- body: ${JSON.stringify(weeklyUpdateContent)},
- title: ${JSON.stringify(discussionTitle)}
- }) {
- discussion {
- id
- url
- }
- }
- }
- `;
-
- try {
- const result = await github.graphql(createDiscussionMutation);
- console.log(`Successfully created discussion: ${result.createDiscussion.discussion.url}`);
- } catch (error) {
- console.error('Error creating discussion:', error.message);
- core.setFailed(`Error creating discussion: ${error.message}`);
- }