Cronjob BaoChinhPhu #5294
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Cronjob BaoChinhPhu" | |
on: | |
workflow_dispatch: | |
jobs: | |
baochinhphu_job: | |
name: BaoChinhPhu - ${{ matrix.rand_seed }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- feed_list: "https://baochinhphu.vn/home.rss" | |
readme_path: "./docs/index.md" | |
rand_seed: "baochinhphu" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pull in BaoChinhPhu news | |
uses: ePlus-DEV/[email protected] | |
with: | |
retry_count: 5 | |
readme_path: ${{ matrix.readme_path }} | |
feed_list: ${{ matrix.feed_list }} | |
committer_email: "[email protected]" | |
commit_message: "Get BaoChinhPhu news - ${{ matrix.rand_seed }} - ${{ github.event.repository.updated_at}}" | |
rand_seed: ${{ matrix.rand_seed }} | |
comment_tag_name: ${{ matrix.rand_seed }} | |
date_format: "HH:MM dd/mm/yyyy" | |
template: "$newline- $randomEmoji(💯,🔥,💫,🚀,🌮,📝,🥳,💻,🧰,🏊,🥰,🧐,🤓,😎,🥸,🤩,🤗,🤔,🫣,🤭,🤠,👹,👺,🤡,🤖,🎃,😺,🫶,👍,💪,💄,👀,🧠,🧑🏫,👨🏫,💂,🧑💻,🥷,💃,🕴,💼,🎓,🐻,🐵,🙉,🦄,🦆,🦅,🦍,🦣,🐘,🦒,🦏,🐎,🦩,🐲,🌝,🌜,🌏,🌈,🌊,🎬,🎭,🚀,🚦,⛽️,🗽,🎡,🌋,🌁,💡,🕯,🪜,🧰,⚗️,🔭,🪄,🎊,🎉) [$title]($url) - $date" | |
max_post_count: 60 | |
- name: Trigger Workflow | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'muctim.yml', | |
ref: 'main', | |
}) |