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

34 lines
973 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:
2022-07-16 14:24:19 +02:00
jobs:
test:
runs-on: ubuntu-latest
2022-07-16 14:24:19 +02:00
steps:
- uses: actions/checkout@v2
with:
ref: refs/pull/${{ github.event.number }}/merge
2022-07-16 14:24:19 +02:00
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
2022-07-16 14:24:19 +02:00
- name: Get changed files
uses: Mineflash07/gh-action-get-changed-files@feature/support-pr-target-event
with:
token: ${{ secrets.GITHUB_TOKEN }}
2022-07-16 14:24:19 +02:00
- name: Update files.json file
run: cp $HOME/files.json ./scripts/validate_tags/
2022-07-16 14:24:19 +02:00
- name: Validate tags
run: 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 }}