Skip to content

Commit

Permalink
Disable auto-revert job temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
nikohoffren committed Oct 22, 2023
1 parent bc03d3d commit fa50632
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/revert_and_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ on:
- opened

jobs:
auto-revert:
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request_target' &&
github.event.pull_request.merged == true &&
github.event.pull_request.user.login != 'dependabot[bot]' &&
github.event.pull_request.user.login != 'nikohoffren' &&
github.event.pull_request.user.login != 'dependabot-preview[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main
token: ${{ secrets.REPO_PAT }}
fetch-depth: 0

- name: Revert merge commit
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git revert -m 1 HEAD
git push origin main
# auto-revert:
# runs-on: ubuntu-latest
# if: |
# github.event_name == 'pull_request_target' &&
# github.event.pull_request.merged == true &&
# github.event.pull_request.user.login != 'dependabot[bot]' &&
# github.event.pull_request.user.login != 'nikohoffren' &&
# github.event.pull_request.user.login != 'dependabot-preview[bot]'
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# with:
# ref: main
# token: ${{ secrets.REPO_PAT }}
# fetch-depth: 0

# - name: Revert merge commit
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "GitHub Action"
# git revert -m 1 HEAD
# git push origin main

comment:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
I look forward to seeing your contributions!"
add-contributor-to-readme:
needs: auto-revert
# needs: auto-revert
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request_target' &&
Expand Down
Binary file added tasks/c++/easy/tempConverter
Binary file not shown.

0 comments on commit fa50632

Please sign in to comment.