Skip to content

[Add] ECIR2024

[Add] ECIR2024 #67

name: update_content
env:
PYTHON_VERSION: "3.8" # set this to the Python version to use
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
issues:
types:
- labeled
jobs:
update-conf-list:
if: github.event.label.name == 'require to update content'
runs-on: ubuntu-latest
env:
FEISHU_URL: ${{ secrets.FEISHU_URL }}
permissions:
issues: write
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Python version
uses: actions/setup-python@v3
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: pip install openpyxl requests
- name: Update the cache file from the issue
run: python maintain.py --issue ${{ toJson(github.event.issue.body) }}
- name: Commit files
id: commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions"
git add --all
if [ -z "$(git status --porcelain)"]; then
echo "::set-output name=push::false"
else
git commit -m "chore: update content" -a
echo "::set-output name=push::true"
fi
shell: bash
- name: Push changes
if: steps.commit.outputs.push == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}