Skip to content

[FIX] #484 Comment Action for Automated Conference Issues #485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/conference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,29 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ env.GITHUB_TOKEN }}

- name: Setup Python environment
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: pip install PyGithub PyYAML pre-commit

- name: Run script
env:
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
run: |
python _conferences
pre-commit run --all-files --show-diff-on-failure

- name: Add comment to the issue
uses: actions/github-script@v6
if: ${{ github.event.issue.user.type != 'User' }} #adds comment only if the issue is created by a bot
if: ${{ github.event.action == 'opened' && startsWith(github.event.issue.title, '[CONFERENCE]') && contains(github.event.issue.labels.*.name, 'conference') }} #adds comment only if the issue is created by a user
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ on:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '22 15 * * 4'
- cron: "22 15 * * 4"
push:
branches: [ "gh-pages" ]
branches: ["gh-pages"]

# Declare default permissions as read only.
permissions: read-all
Expand Down
Loading