From e5e6fa5b1235a8e71b88ac7e305cf799d5845586 Mon Sep 17 00:00:00 2001 From: Ramazan Sancar Date: Tue, 28 May 2024 19:53:22 +0000 Subject: [PATCH] upd: added .ip2 network control for workflows. --- .github/workflows/add-instance-updown.yml | 9 +++------ .github/workflows/add-instance-uptimerobot.yml | 8 +++----- .github/workflows/container-release.yml | 2 -- .github/workflows/remove-30days-label.yml | 2 -- 4 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/add-instance-updown.yml b/.github/workflows/add-instance-updown.yml index 95f59db..4550e1b 100644 --- a/.github/workflows/add-instance-updown.yml +++ b/.github/workflows/add-instance-updown.yml @@ -5,9 +5,7 @@ on: types: [opened, reopened] jobs: - replycomment: - runs-on: ubuntu-latest permissions: write-all steps: @@ -31,10 +29,10 @@ jobs: var linkify = require("linkifyjs"); var issueTitleParseUrl = linkify.find(issueInfo.title); if (issueTitleParseUrl.length !== 0) { - if (issueInfo.title.includes(".onion")) { + if (issueInfo.title.includes(".onion") || issueInfo.title.includes(".ip2")) { var replyComment = - ['Hello! I have detected that you are requesting to add an onion URL.', - 'Please create a pull request instead for adding your onion url as an alternative to your clearnet URL: https://github.com/iv-org/documentation/edit/master/docs/instances.md' + ['Hello! I have detected that you are requesting to add an onion or I2P URL.', + 'Please create a pull request instead for adding your onion or I2P url as an alternative to your clearnet URL: https://github.com/iv-org/documentation/edit/master/docs/instances.md' ].join('\n'); await github.rest.issues.createComment({ issue_number: context.issue.number, @@ -65,7 +63,6 @@ jobs: apdex_t: '1.0', alias: instanceHostname, string_match: 'An alternative front-end to YouTube' } }; - request(optionsAddNewCheck, async function (error, response, body) { if (error) throw new Error(error); diff --git a/.github/workflows/add-instance-uptimerobot.yml b/.github/workflows/add-instance-uptimerobot.yml index 9d1b9f3..bfa409e 100644 --- a/.github/workflows/add-instance-uptimerobot.yml +++ b/.github/workflows/add-instance-uptimerobot.yml @@ -5,9 +5,7 @@ on: types: [opened, reopened] jobs: - replycomment: - runs-on: ubuntu-latest permissions: write-all steps: @@ -31,10 +29,10 @@ jobs: var linkify = require("linkifyjs"); var issueTitleParseUrl = linkify.find(issueInfo.title); if (issueTitleParseUrl.length !== 0) { - if (issueInfo.title.includes(".onion")) { + if (issueInfo.title.includes(".onion") || issueInfo.title.includes(".ip2")) { var replyComment = - ['Hello! I have detected that you are requesting to add an onion URL.', - 'Please create a pull request instead for adding your onion url as an alternative to your clearnet URL: https://github.com/iv-org/documentation/edit/master/docs/instances.md' + ['Hello! I have detected that you are requesting to add an onion or I2P URL.', + 'Please create a pull request instead for adding your onion or I2P url as an alternative to your clearnet URL: https://github.com/iv-org/documentation/edit/master/docs/instances.md' ].join('\n'); await github.rest.issues.createComment({ issue_number: context.issue.number, diff --git a/.github/workflows/container-release.yml b/.github/workflows/container-release.yml index a2dd888..7b49d6f 100644 --- a/.github/workflows/container-release.yml +++ b/.github/workflows/container-release.yml @@ -12,9 +12,7 @@ on: jobs: release: - runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/remove-30days-label.yml b/.github/workflows/remove-30days-label.yml index 6e235ad..8ea34d4 100644 --- a/.github/workflows/remove-30days-label.yml +++ b/.github/workflows/remove-30days-label.yml @@ -5,9 +5,7 @@ on: types: [closed] jobs: - replycomment: - runs-on: ubuntu-latest permissions: write-all steps: