bun-discord-bot/.github/workflows/validate.yml

34 lines
868 B
YAML
Raw Normal View History

2022-07-16 14:50:46 +02:00
name: Validate
2022-07-16 14:24:19 +02:00
on:
pull_request_target:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2022-07-16 14:50:46 +02:00
with:
ref: refs/pull/${{ github.event.number }}/merge
2022-07-16 14:24:19 +02:00
- name: Setup Bun
uses: xhyrom/setup-bun@v0.1.3
with:
bun-version: latest
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Get changed files
uses: Mineflash07/gh-action-get-changed-files@feature/support-pr-target-event
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Add json
run: cp $HOME/files.json ./scripts/validateTags/
2022-07-16 14:50:46 +02:00
- name: Validate tag
2022-07-16 14:24:19 +02:00
run: bun run validate
2022-07-16 15:41:10 +02:00
env:
2022-07-16 15:40:06 +02:00
github-token: ${{ secrets.GITHUB_TOKEN }}
commit-sha: ${{ github.event.pull_request.head.sha }}
pr-number: ${{ github.event.pull_request.number }}