diff --git a/.github/workflows/auto-issue.yml b/.github/workflows/auto-issue.yml index 4494b25..6df4c10 100644 --- a/.github/workflows/auto-issue.yml +++ b/.github/workflows/auto-issue.yml @@ -2,7 +2,7 @@ name: Automated Issue on: pull_request: - types: ["opened", "closed"] + types: ["opened", "synchronize", "closed"] issue_comment: types: ["created"] workflow_dispatch: @@ -12,7 +12,7 @@ on: jobs: create_issue: runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && github.event.pull_request.state == 'open' + if: ${{ github.event_name == 'pull_request' && github.event.pull_request.state == 'open' && github.actor != 'dependabot[bot]' && github.event_name == 'pull_request' }} steps: - uses: actions/checkout@v4 - name: Generate Issue Template @@ -33,7 +33,6 @@ jobs: - Pull Request Number: #${{ github.event.number }} - Pull Request Title: ${{ github.event.pull_request.title }} - Issue Details: ${{ github.event.issue.id }} - ${{ github.event.issue.number }} - - Current Action Status: ${{ github.action_status }} --- diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 8177b19..c254fcd 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -12,6 +12,7 @@ on: jobs: label_pull_requests: runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' && github.event.pull_request.state == 'open' && github.actor != 'dependabot[bot]' && github.event_name == 'pull_request' }} permissions: contents: read pull-requests: write diff --git a/.github/workflows/auto-pr.yml b/.github/workflows/auto-pr.yml index 1d908c9..c823344 100644 --- a/.github/workflows/auto-pr.yml +++ b/.github/workflows/auto-pr.yml @@ -11,6 +11,8 @@ on: jobs: create_pr: runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' && github.event.pusher.name != 'dependabot[bot]' }} + steps: - uses: actions/checkout@v4 @@ -34,6 +36,7 @@ jobs: update_pr: needs: create_pr runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' && github.event.pusher.name != 'dependabot[bot]' }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/auto-quote.yml b/.github/workflows/auto-quote.yml deleted file mode 100644 index b5d5915..0000000 --- a/.github/workflows/auto-quote.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Daily Motivational Quote - -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * *' - -jobs: - update-quote: - name: Update Quote - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - - uses: offensive-vk/auto-update-quote@v5 - with: - GH_TOKEN: ${{ secrets.CLASSIC_GH_TOKEN || secrets.BOT_TOKEN }} - COMMIT_MESSAGE: | - :cloud: Updated Daily Quote - - - Signed-off-by: Hamster [bot] - Co-Authored-by: Vedansh \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1116571 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:latest + +RUN apt-get update && \ + apt-get install -y \ + build-essential \ + cmake \ + git \ + clang \ + libssl-dev \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /base + +COPY . . + +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ + CMD echo "pass" || exit 1 + +CMD [ "gcc -o main ./C/main.c","./C/main.exe" ] \ No newline at end of file