Skip to content

Error adding the-silver-bayonet data source to BattleScribe #362

Error adding the-silver-bayonet data source to BattleScribe

Error adding the-silver-bayonet data source to BattleScribe #362

Workflow file for this run

name: New repo issue
on:
issues:
types: [opened, edited]
jobs:
handle_new:
runs-on: ubuntu-latest
if: |
github.event.issue.state == 'open' &&
startsWith(github.event.issue.title, 'New Repo')
steps:
- name: Add 'new repo' label
if: "!contains(github.event.issue.labels.*.name, 'new repo')"
uses: actions/github-script@v3
with:
script: |
await github.issues.addLabels({
...context.repo,
issue_number: context.issue.number,
labels: ['new repo']
})
- uses: actions/checkout@v2
- name: Run preview comment creation script
id: create_script
uses: Amadevus/pwsh-script@v2
with:
script: ./.github/scripts/GetPreviewComment.ps1 $github.event
- name: Create comment with preview info
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.issue.number }}
body: ${{ steps.create_script.outputs.result }}