2022-07-16 14:50:46 +02:00
|
|
|
name: Validate
|
2022-07-16 14:24:19 +02:00
|
|
|
|
|
|
|
on:
|
2023-12-30 21:10:51 +01:00
|
|
|
pull_request_target:
|
2022-07-16 14:24:19 +02:00
|
|
|
|
|
|
|
jobs:
|
2023-12-30 21:10:51 +01:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
2022-07-16 14:24:19 +02:00
|
|
|
|
2023-12-30 21:10:51 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: refs/pull/${{ github.event.number }}/merge
|
2022-07-16 14:24:19 +02:00
|
|
|
|
2023-12-30 21:10:51 +01:00
|
|
|
- name: Setup Bun
|
|
|
|
uses: oven-sh/setup-bun@v1
|
|
|
|
with:
|
|
|
|
bun-version: latest
|
2022-07-16 14:24:19 +02:00
|
|
|
|
2023-12-30 21:10:51 +01:00
|
|
|
- name: Get changed files
|
|
|
|
uses: lots0logs/gh-action-get-changed-files@e5c59575dff4a94f74c6cc609a77c71f0becf7ec
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2022-07-16 14:24:19 +02:00
|
|
|
|
2023-12-30 21:10:51 +01:00
|
|
|
- name: Update files.json file
|
|
|
|
run: cp $HOME/files.json ./scripts/validate_tags/
|
2022-07-16 14:24:19 +02:00
|
|
|
|
2023-12-30 21:10:51 +01:00
|
|
|
- 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 }}
|