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
4 changes: 2 additions & 2 deletions .github/workflows/hermes_open_project_recommendation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout osscameroon-website
uses: actions/checkout@v7
uses: actions/checkout@v4
with:
token: ${{ secrets.GA_WORKFLOW_DEPLOYMENTS_TOKEN }}
repository: osscameroon/osscameroon-website
path: osscameroon-website

- name: Set up Python 3.8
uses: actions/setup-python@v6
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/jobsika_social_media_message_scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
name: Send message
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v6
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/notify_on_broken_link_detected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
name: notify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v4
- name: Install the broken link checker
shell: bash
run: |
sh /.github/workflows/notify_on_broken_link_detected/install_deps.sh
sh ./.github/workflows/notify_on_broken_link_detected/install_deps.sh
- name: Check the websites
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notify_on_issue_open.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: notify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v4
with:
repository: osscameroon/global-github-actions
- name: notify telegram when issue is a created
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notify_on_pull_request_open.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: notify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v4
with:
repository: osscameroon/global-github-actions
- name: notify telegram when pull request is a created
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/recommend_yotas_issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,31 @@ on:

jobs:
build:
env:
TELEGRAM_SEND_GATE_ENABLED: ${{ vars.TELEGRAM_SEND_GATE_ENABLED || 'true' }}
TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES || '5' }}
TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES || '1' }}
TELEGRAM_SEND_GATE_ON_ERROR: ${{ vars.TELEGRAM_SEND_GATE_ON_ERROR || 'skip' }}
defaults:
run:
working-directory: ./.github/workflows/recommend_yotas_issues

name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: get yotas issues
shell: bash
run: |
GITHUB_TOKEN=${{ secrets.BOT_GITHUB_TOKEN }} ./get_yotas_issues.sh > yotas_issues_message

- name: check if osscameroon group allows bot posting
id: telegram_send_gate_yotas_issues
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
run: "$GITHUB_WORKSPACE/.github/workflows/telegram_send_gate.sh"

- name: send custom message with to osscameroon channel
uses: appleboy/telegram-action@v1.0.1
with:
Expand All @@ -26,6 +38,7 @@ jobs:
message_file: ./.github/workflows/recommend_yotas_issues/yotas_issues_message

- name: send custom message with to osscameroon group
if: ${{ steps.telegram_send_gate_yotas_issues.outputs.telegram_send_gate == 'true' }}
uses: appleboy/telegram-action@v1.0.1
with:
to: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/report_a_quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,29 @@ on:

jobs:
build:
env:
TELEGRAM_SEND_GATE_ENABLED: ${{ vars.TELEGRAM_SEND_GATE_ENABLED || 'true' }}
TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES || '5' }}
TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES || '1' }}
TELEGRAM_SEND_GATE_ON_ERROR: ${{ vars.TELEGRAM_SEND_GATE_ON_ERROR || 'skip' }}
defaults:
run:
working-directory: ./.github/workflows/report_quiz

name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: check if osscameroon group allows bot posting
id: telegram_send_gate_quiz
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
run: "$GITHUB_WORKSPACE/.github/workflows/telegram_send_gate.sh"

- name: Send Quiz message to the channel
if: ${{ steps.telegram_send_gate_quiz.outputs.telegram_send_gate == 'true' }}
shell: bash
run: |
./report_quiz.sh ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }} ${{ secrets.TELEGRAM_BOT_TOKEN }} ${{ secrets.QUIZAPI_KEY }}
17 changes: 15 additions & 2 deletions .github/workflows/report_contributions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@ on:

jobs:
build:
env:
TELEGRAM_SEND_GATE_ENABLED: ${{ vars.TELEGRAM_SEND_GATE_ENABLED || 'true' }}
TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES || '5' }}
TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES || '1' }}
TELEGRAM_SEND_GATE_ON_ERROR: ${{ vars.TELEGRAM_SEND_GATE_ON_ERROR || 'skip' }}
defaults:
run:
working-directory: ./.github/workflows/report_contributions

name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v6
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
Expand All @@ -26,6 +31,13 @@ jobs:
run: |
GITHUB_TOKEN=${{ secrets.BOT_GITHUB_TOKEN }} ./get_contribution_report.sh > contributions_report_message

- name: check if osscameroon group allows bot posting
id: telegram_send_gate_contributions
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
run: "$GITHUB_WORKSPACE/.github/workflows/telegram_send_gate.sh"

- name: send contribution report to osscameroon channel
uses: appleboy/telegram-action@v1.0.1
with:
Expand All @@ -35,6 +47,7 @@ jobs:
message_file: ./.github/workflows/report_contributions/contributions_report_message

- name: send contribution report to osscameroon group
if: ${{ steps.telegram_send_gate_contributions.outputs.telegram_send_gate == 'true' }}
uses: appleboy/telegram-action@v1.0.1
with:
to: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/report_jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,34 @@ on:

jobs:
build:
env:
TELEGRAM_SEND_GATE_ENABLED: ${{ vars.TELEGRAM_SEND_GATE_ENABLED || 'true' }}
TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES || '5' }}
TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES || '1' }}
TELEGRAM_SEND_GATE_ON_ERROR: ${{ vars.TELEGRAM_SEND_GATE_ON_ERROR || 'skip' }}
defaults:
run:
working-directory: ./.github/workflows/report_jobs

name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: get available jobs
shell: bash
run: |
./report_jobs.sh > report_jobs &&
cat report_jobs

- name: check if remotejobs group allows bot posting
id: telegram_send_gate_jobs
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_REMOTEJOBS_GROUP_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
run: "$GITHUB_WORKSPACE/.github/workflows/telegram_send_gate.sh"

- name: send jobs report to osscameroon group
if: ${{ steps.telegram_send_gate_jobs.outputs.telegram_send_gate == 'true' }}
uses: appleboy/telegram-action@v1.0.1
with:
to: ${{ secrets.TELEGRAM_REMOTEJOBS_GROUP_ID }}
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/report_jokes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@ on:

jobs:
build:
env:
TELEGRAM_SEND_GATE_ENABLED: ${{ vars.TELEGRAM_SEND_GATE_ENABLED || 'true' }}
TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES || '5' }}
TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES || '1' }}
TELEGRAM_SEND_GATE_ON_ERROR: ${{ vars.TELEGRAM_SEND_GATE_ON_ERROR || 'skip' }}
defaults:
run:
working-directory: ./.github/workflows/report_jokes

name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v6
uses: actions/setup-python@v5
with:
python-version: 3.11

Expand All @@ -26,7 +31,15 @@ jobs:
python main.py > report_joke && \
cat report_joke

- name: check if osscameroon group allows bot posting
id: telegram_send_gate_jokes
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
run: "$GITHUB_WORKSPACE/.github/workflows/telegram_send_gate.sh"

- name: send joke report to osscameroon group
if: ${{ steps.telegram_send_gate_jokes.outputs.telegram_send_gate == 'true' }}
uses: appleboy/telegram-action@v1.0.1
with:
to: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/report_news.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Build And Send
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v4

- name: Send the news api message to osscameroon channel
env:
Expand Down Expand Up @@ -49,6 +49,10 @@ jobs:
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com" && \
git config --global user.name "github-actions[bot]" && \
git add $REPORT_HASH_FILE && \
git commit -m 'update report_news.hash' && \
git push origin main
if ! git diff --quiet $REPORT_HASH_FILE; then \
git add $REPORT_HASH_FILE && \
git commit -m 'update report_news.hash' && \
git push origin main; \
else \
echo "No hash changes detected, skip commit."; \
fi
17 changes: 15 additions & 2 deletions .github/workflows/report_number_of_yotas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,28 @@ on:

jobs:
build:
env:
TELEGRAM_SEND_GATE_ENABLED: ${{ vars.TELEGRAM_SEND_GATE_ENABLED || 'true' }}
TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES || '5' }}
TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES || '1' }}
TELEGRAM_SEND_GATE_ON_ERROR: ${{ vars.TELEGRAM_SEND_GATE_ON_ERROR || 'skip' }}
defaults:
run:
working-directory: ./.github/workflows/members_yotas
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: get number of yotas of each member
run: python extract.py > members_yotas_message

- name: check if osscameroon group allows bot posting
id: telegram_send_gate_yotas
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
run: "$GITHUB_WORKSPACE/.github/workflows/telegram_send_gate.sh"

- name: send custom message to osscameroon channel
uses: appleboy/telegram-action@v1.0.1
with:
Expand All @@ -25,9 +37,10 @@ jobs:
message_file: ./.github/workflows/members_yotas/members_yotas_message

- name: send custom message to osscameroon telegram group
if: ${{ steps.telegram_send_gate_yotas.outputs.telegram_send_gate == 'true' }}
uses: appleboy/telegram-action@v1.0.1
with:
to: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
format: MarkdownV2
message_file: ./.github/workflows/members_yotas/members_yotas_message
message_file: ./.github/workflows/members_yotas/members_yotas_message
15 changes: 14 additions & 1 deletion .github/workflows/report_open_projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,31 @@ on:

jobs:
build:
env:
TELEGRAM_SEND_GATE_ENABLED: ${{ vars.TELEGRAM_SEND_GATE_ENABLED || 'true' }}
TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_LOOKBACK_MESSAGES || '5' }}
TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES: ${{ vars.TELEGRAM_SEND_GATE_MIN_HUMAN_MESSAGES || '1' }}
TELEGRAM_SEND_GATE_ON_ERROR: ${{ vars.TELEGRAM_SEND_GATE_ON_ERROR || 'skip' }}
defaults:
run:
working-directory: ./.github/workflows/report_open_projects

name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: get contribution report
shell: bash
run: |
./get_open_projects.sh > open_projects_message

- name: check if osscameroon group allows bot posting
id: telegram_send_gate_open_projects
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
run: "$GITHUB_WORKSPACE/.github/workflows/telegram_send_gate.sh"

- name: send open projects report to osscameroon channel
uses: appleboy/telegram-action@v1.0.1
with:
Expand All @@ -27,6 +39,7 @@ jobs:
message_file: ./.github/workflows/report_open_projects/open_projects_message

- name: send open projects report to osscameroon group
if: ${{ steps.telegram_send_gate_open_projects.outputs.telegram_send_gate == 'true' }}
uses: appleboy/telegram-action@v1.0.1
with:
to: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
Expand Down
Loading
Loading