-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/rokucommunity/brighterscript
- Loading branch information
Showing
180 changed files
with
40,281 additions
and
5,655 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: create-vsix | ||
on: | ||
pull_request: | ||
types: [labeled, unlabeled, synchronize] | ||
jobs: | ||
create-vsix: | ||
runs-on: ubuntu-latest | ||
if: contains(github.event.pull_request.labels.*.name, 'create-vsix') | ||
steps: | ||
# Get a bot token so the bot's name shows up on all our actions | ||
- name: Get Token From roku-ci-token Application | ||
uses: tibdex/github-app-token@v1 | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.BOT_APP_ID }} | ||
private_key: ${{ secrets.BOT_PRIVATE_KEY }} | ||
- name: Set New GitHub Token | ||
run: echo "TOKEN=${{ steps.generate-token.outputs.token }}" >> $GITHUB_ENV | ||
#trigger the build on vscode-brightscript-language | ||
- name: Build vsix for branch "${{ github.head_ref}}" | ||
uses: aurelien-baudet/workflow-dispatch@v2.1.1 | ||
id: create-vsix | ||
with: | ||
workflow: create-vsix | ||
ref: master | ||
wait-for-completion: true | ||
display-workflow-run-url: true | ||
repo: rokucommunity/vscode-brightscript-language | ||
token: ${{ env.TOKEN }} | ||
inputs: '{ "branch": "${{ github.head_ref }}"}' | ||
#add a comment on the PR | ||
- name: Add comment to PR | ||
uses: actions/github-script@v5 | ||
with: | ||
github-token: ${{ env.TOKEN }} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Hey there! I just built a new version of the vscode extension based on ${{ github.event.pull_request.head.sha }}. You can download the .vsix [here](${{steps.create-vsix.outputs.workflow-url}}) and then follow [these installation instructions](https://github.com/rokucommunity/vscode-brightscript-language#pre-release-versions).' | ||
}) |
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
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
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
Oops, something went wrong.