Skip to content

CI

CI #611

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '0 20 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- name: Download File To Workspace
# You may pin to the exact commit or the version.
# uses: carlosperate/download-file-action@83d04ab2bc6f9ffa7b6f1ef21c83f630e75d6862
uses: carlosperate/download-file-action@v2.0.0
with:
# URL of the file to download
file-url: https://raw.githubusercontent.com/wuwentao/bj-unicom-iptv/master/bj-unicom-iptv.m3u
# New filename to rename the downloaded file
file-name: origin.m3u
- name: change file
run: sed 's/rtp:\/\//http:\/\/192.168.50.3:8012\/rtp\//' origin.m3u >> bj-unicom-iptv.m3u
- name: delete origin file
run: rm origin.m3u
- name: Git Commit and Push
# You may pin to the exact commit or the version.
# uses: github-actions-x/commit@722d56b8968bf00ced78407bbe2ead81062d8baa
uses: github-actions-x/commit@v2.9
with:
# Github Token with commit access
github-token: ${{ secrets.GITHUB_TOKEN }}
# Override branch to push to
push-branch: master
# Specify commit message
commit-message: auto update
email: admin@wkz.io
# Committer name. Default is name of the person or app that initiated the workflow.
name: wangkezun