mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-14 02:48:07 +01:00
16c842808d
Thanks @Didas-git for big help https://github.com/xHyroM/bun-discord-bot/pull/31 --------- Co-authored-by: DidaS <didasoficial@gmail.com>
35 lines
1,013 B
YAML
35 lines
1,013 B
YAML
name: Validate
|
|
|
|
on:
|
|
pull_request_target:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: refs/pull/${{ github.event.number }}/merge
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v1
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Get changed files
|
|
uses: Mineflash07/gh-action-get-changed-files@feature/support-pr-target-event
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Update files.json file
|
|
run: cp $HOME/files.json ./scripts/validate_tags/
|
|
|
|
- name: Validate tags
|
|
run: |
|
|
bun i
|
|
bun run validate:tags
|
|
env:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
commit-sha: ${{ github.event.pull_request.head.sha }}
|
|
pr-number: ${{ github.event.pull_request.number }}
|