Bump actions/upload-artifact from 4 to 5 #17
Workflow file for this run
This file contains hidden or 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: Auto-close External PRs | |
| on: | |
| pull_request_target: | |
| types: [opened] | |
| jobs: | |
| auto-close: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.user.login != 'bitbound' | |
| permissions: | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - name: Close PR with message | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const message = `Thank you so much for your interest in ControlR! I really appreciate you taking the time to contribute. | |
| However, I am not accepting PRs at the moment for the following reasons: | |
| **Read-Only Mirror** | |
| For now, the public repository is a read-only mirror. This allows me to work on ideas and experiments in private and only reveal them when they're ready. | |
| **Legal and Financial Considerations** | |
| With Remotely, I found out that there are legal impliciations to accepting external contributions. Since I want to create a self-sustaining business out of ControlR, it's less complicated and risky if I avoid external contributions for now. | |
| **Personal Working Style** | |
| During these early stages of the project, working solo will bring me the most amount of happiness and sense of accomplishment. I hope you understand! | |
| If you have ideas, suggestions, or found a bug, please feel free to open an issue instead. I'd love to hear your feedback! | |
| Thank you again for your interest in the project! 🙏`; | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body: message | |
| }); | |
| await github.rest.pulls.update({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: context.issue.number, | |
| state: 'closed' | |
| }); |