mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 04:44:30 +00:00
Try the manual approach...
This commit is contained in:
parent
d20ed0aacf
commit
403fa7fbc9
1 changed files with 7 additions and 5 deletions
12
.github/actions/check_style/action.yml
vendored
12
.github/actions/check_style/action.yml
vendored
|
@ -19,9 +19,11 @@ runs:
|
|||
- name: Find modified migrations
|
||||
shell: bash -euxo pipefail {0}
|
||||
run: |
|
||||
cargo install squawk --git https://github.com/sbdchd/squawk --tag v0.26.0
|
||||
modified_migrations=$(git diff --name-only origin/$GITHUB_BASE_REF...origin/$GITHUB_HEAD_REF 'crate/collab/migrations/*.sql')
|
||||
echo "::set-output name=file_names::$modified_migrations"
|
||||
id: modified-migrations
|
||||
- uses: sbdchd/squawk-action@v1
|
||||
with:
|
||||
pattern: ${{ steps.modified-migrations.outputs.file_names }}
|
||||
|
||||
SQUAWK_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
||||
SQUAWK_GITHUB_REPO_OWNER=$(echo $GITHUB_REPOSITORY | awk -F/ '{print $1}')
|
||||
SQUAWK_GITHUB_REPO_NAME=$(echo $GITHUB_REPOSITORY | awk -F/ '{print $2}')
|
||||
SQUAWK_GITHUB_PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
|
||||
squawk upload-to-github $(modified_migrations)
|
||||
|
|
Loading…
Reference in a new issue