Add ThirdReality Smart Button v1.00.47 #77
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-approve trusted OTA submissions | |
| on: | |
| issues: | |
| types: [opened] | |
| env: | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| jobs: | |
| auto-approve: | |
| name: Auto-approve trusted submitter | |
| permissions: {} | |
| if: | | |
| contains(github.event.issue.labels.*.name, 'ota-submit') && | |
| contains(fromJSON(format('[{0}]', vars.TRUSTED_SUBMITTERS || '')), github.event.issue.user.login) | |
| runs-on: ubuntu-slim | |
| timeout-minutes: 1 | |
| steps: | |
| - name: Add ota-create label | |
| env: | |
| GH_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }} | |
| GH_REPO: ${{ github.repository }} | |
| run: gh issue edit "$ISSUE_NUMBER" --add-label "ota-create" |