Skip to content

Commit

Permalink
fix: release workflow naming convention problem (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl authored Sep 3, 2024
1 parent c4f5b4e commit b4f3679
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release-step.outputs.version }}
tag: "v${{ steps.release-step.outputs.version }}"
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${{ steps.release-step.outputs.version }}" \
--title="v${{ steps.release-step.outputs.version }}" \
--target="release/${{ steps.release-step.outputs.version }}" \
--generate-notes
23 changes: 18 additions & 5 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Tests
on:
push:
paths:
- 'keep/**'
pull_request:
paths:
- 'keep/**'
workflow_dispatch:
permissions:
actions: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
Expand All @@ -19,9 +17,24 @@ env:
ELASTIC_PASSWORD: keeptests

jobs:
check-before-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check if relevant files have changed
id: file_check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if ! git diff --name-only $BASE_SHA $HEAD_SHA | grep -q '^keep/'; then
echo "No relevant changes, cancelling job."
exit 78
fi
tests:
runs-on: ubuntu-latest

needs:
- check-before-unit-tests
services:
mysql:
image: mysql:5.7
Expand Down

0 comments on commit b4f3679

Please sign in to comment.