2022-07-16 14:50:46 +02:00
|
|
|
name: Validate
|
2022-07-16 14:24:19 +02:00
|
|
|
|
|
|
|
on:
|
2023-07-21 22:58:45 +02:00
|
|
|
pull_request_target:
|
2022-07-16 14:24:19 +02:00
|
|
|
|
|
|
|
jobs:
|
2023-07-21 22:58:45 +02:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
2022-07-16 14:24:19 +02:00
|
|
|
|
2023-07-21 22:58:45 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: refs/pull/${{ github.event.number }}/merge
|
2022-07-16 14:24:19 +02:00
|
|
|
|
2023-07-21 22:58:45 +02:00
|
|
|
- name: Setup Bun
|
|
|
|
uses: oven-sh/setup-bun@v1
|
|
|
|
with:
|
|
|
|
bun-version: latest
|
2022-07-16 14:24:19 +02:00
|
|
|
|
2023-07-21 22:58:45 +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
|
|
|
|
2023-07-21 22:58:45 +02:00
|
|
|
- name: Update files.json file
|
|
|
|
run: cp $HOME/files.json ./scripts/validate_tags/
|
2022-07-16 14:24:19 +02:00
|
|
|
|
2023-07-21 22:58:45 +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 }}
|