Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gaodechen authored Aug 16, 2024
1 parent b2ea2bf commit ed40aea
Showing 1 changed file with 33 additions and 14 deletions.
47 changes: 33 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,36 @@
name: CI/CD

on:
push:
branches:
- master
push:
branches: [master]
pull_request:
branches: [master]

jobs:
contrib-readme-job:
runs-on: ubuntu-latest
name: A job to automate contrib in readme
permissions:
contents: write
pull-requests: write
steps:
- name: Contribute List
uses: akhilmhdh/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Check failure on line 13 in .github/workflows/main.yml

View workflow job for this annotation

GitHub Actions / pre-commit

13:5 [indentation] wrong indentation: expected 6 but found 4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files

contrib-readme-job:
runs-on: ubuntu-latest
name: Update Contributor List
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: Contribute List
uses: akhilmhdh/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ed40aea

Please sign in to comment.