This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
[Bug]: streamed.su #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Removal Issue Solver | |
on: | |
issues: | |
types: | |
- labeled | |
jobs: | |
domains_removal: | |
if: github.event.label.name == 'remove' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Close Issue | |
uses: peter-evans/close-issue@v3 | |
with: | |
issue-number: ${{ github.event.issue.number }} | |
comment: Terima kasih atas kontribusi Anda, permintaan penghapusan domain Anda akan diterapkan pada siklus update selanjutnya. | |
- name: Remove Domain from Issue | |
run: | | |
domain=$(jq -r '.issue.body' "$GITHUB_EVENT_PATH" | sed -n '3p') | |
sed -i "/$domain/d" domainlist | |
echo "Domain $domain removed from domainlist." | |
- name: Commit changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "zksbot" | |
git add hosts domainlist | |
domain=$(jq -r '.issue.body' "$GITHUB_EVENT_PATH" | sed -n '3p') | |
git commit -m "Remove $domain from domainlist" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.UPDATE_TOKEN }} |