Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

JVN only

JVN only #4751

Workflow file for this run

name: JVN only
on:
workflow_dispatch:
schedule:
- cron: '10 * * * *'
concurrency: execution limit jvn
jobs:
Send_Note:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Python Install
run: |
python -m pip install --upgrade pip
pip install Misskey.py
pip install feedparser
pip install atproto
- name: Create Note&WP Content
env:
MISSKEY_SERVER_ADDRESS: ${{ secrets.MISSKEY_SERVER_ADDRESS }}
MISSKEY_TOKEN: ${{ secrets.MISSKEY_TOKEN }}
WORDPRESS_USER: ${{ secrets.WORDPRESS_USER }}
WORDPRESS_API_PASSWORD: ${{ secrets.WORDPRESS_API_PASSWORD }}
BLUESKY_MAIL_ADDRESS: ${{ secrets.BLUESKY_MAIL_ADDRESS }}
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }}
run: |
python nvnb-jvn.py
cat nvnb-jvn.txt
- name: Update File
run: |
if ! git diff --exit-code --quiet
then
git add --update
git config --global user.name ${{ secrets.YOUSER_NAME }}
git config --global user.email ${{ secrets.MAIL_ADDRESS }}
git commit -m "Update Content"
git push
fi