diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index 89c9b814451..014ad72b731 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -11,14 +11,29 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Comment - if: github.event.action == 'closed' && github.event.pull_request.merged == true - uses: actions/github-script@v3 + - name: Comment PR + uses: mshick/add-pr-comment@v1 with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const { hasLabel } = require(`${process.env.GITHUB_WORKSPACE}/scripts/action-utils.js`); - const { instructions } = require(`${process.env.GITHUB_WORKSPACE}/scripts/reply.js`); - if (hasLabel(context, 'domain')) - console.log('Domain'); - await instructions(context, github); + message: | + The changes have been published!! It should reflect in less than 24 hours. + ## Here's what you need to do next + If your domain points to a server you own, add \`domain-name.is-a.dev\` to your server config. For https, you will have to configure ssl certificate to allow the new subdomain. + ### For github pages users, + * Go to your github page repo (\`user/user.github.io\`) + * Open up the **settings** tab + * Scroll down to the **Github pages** section + * In the **Custom domain** text input, enter the domain you registered (\`domain-name.is-a.dev\`) + * Check the **Enforce HTTPS** checkbox below the input + * Give it some time to reflect and you should be good to go + ## Need help with your domain? + If you are having trouble setting up your domain, [create an issue](https://github.com/is-a-dev/register/issues/new/choose). I will try my best to get back to you asap! + ## Made a mistake in the record? + Don't worry, you can create a new pull request with the corrections + ## Love/Hate the service? + **Love it?** Leave it a **star**! Also consider donating so that I can keep this service running forever! + **Hate it?** Please leave your feedback by [creating an issue](https://github.com/is-a-dev/register/issues/new/choose). I would really like to keep improving this service for other users. + ## Wanna support this project? + Help me in my mission to keep this service alive forever by donating! + Buy Me A Coffee Liberapay recurring donation button + proxy-url: https://is-a-dev.herokuapp.com + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index e31889d093d..adfe15f6462 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -21,3 +21,32 @@ jobs: uses: borales/actions-yarn@v2.0.0 with: cmd: test + + - name: Comment PR + uses: mshick/add-pr-comment@v1 + env: + LOGS_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + with: + message: | + Validation has passed! + 🔍 Inspect the logs: ${{ env.LOGS_URL }} + proxy-url: https://is-a-dev.herokuapp.com + repo-token: ${{ secrets.GITHUB_TOKEN }} + + + + run-if-fail: + if: ${{ always() && (needs.validation.result=='failure') }} + needs: [validation] + runs-on: ubuntu-latest + steps: + - name: Comment PR + uses: mshick/add-pr-comment@v1 + env: + LOGS_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + with: + message: | + ❌ Validation HAS FAILED + 🔍 Inspect the logs: ${{ env.LOGS_URL }} + proxy-url: https://is-a-dev.herokuapp.com + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 4427f98c766..9194c6c4943 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -2,6 +2,7 @@ name: Label on: schedule: - cron: "0 * * * *" + pull_request: jobs: label: diff --git a/domains/win11react.json b/domains/win11react.json new file mode 100644 index 00000000000..70c76c58f79 --- /dev/null +++ b/domains/win11react.json @@ -0,0 +1,11 @@ + + { + "owner": { + username: "andrewstech", + email: "andrew@win11react.com" + }, + "record": { + "CNAME": "win11react.github.io" + } + } + \ No newline at end of file