Skip to content

Commit

Permalink
Update update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maamokun authored Feb 15, 2025
1 parent 261974b commit 6049f52
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

- name: Download blacklist
run: curl -L -o blacklist.txt https://github.com/fabriziosalmi/blacklists/releases/download/latest/blacklist.txt
- name: Download blacklist
run: curl -L -o blacklist.txt https://github.com/fabriziosalmi/blacklists/releases/download/latest/blacklist.txt

- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add blacklist.txt
git commit -m 'Update blacklist.txt'
git push
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add blacklist.txt
git commit -m 'Update blacklist.txt'
git remote set-url origin https://x-access-token:${{ secrets.ACTIONS_DEPLOY_KEY }}@github.com/mikndotdev/domain-blacklist-api.git
git push

0 comments on commit 6049f52

Please sign in to comment.