Skip to content

Commit

Permalink
Update GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
flosse committed Mar 26, 2024
1 parent d3d8c07 commit 5dce844
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-upload-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
cargo install --locked trunk
- name: Install just
uses: extractions/setup-just@v1
uses: extractions/setup-just@v2

- name: Build ofdb-app-clearance
run: just build-clearance
Expand All @@ -78,15 +78,15 @@ jobs:
id: upload-tagged-release-artifact
# Only triggered by version tags that start with 'v'
if: startsWith(github.ref, 'refs/tags/v') && startsWith(github.event.release.tag_name, 'v')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
# Artifact is stored and downloaded as .zip archive
name: openfairdb_${{ github.event.release.tag_name }}_${{ matrix.target }}${{ matrix.executable_suffix }}
path: target/${{ matrix.target }}/production/openfairdb${{ matrix.executable_suffix }}

- name: Upload untagged artifact
if: steps.upload-tagged-release-artifact.outcome == 'skipped'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
# Artifact is stored and downloaded as .zip archive
name: openfairdb_${{ github.sha }}_${{ matrix.target }}${{ matrix.executable_suffix }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.x"

Expand All @@ -38,7 +38,7 @@ jobs:
shared-key: "pre-commit"

- name: Install just
uses: extractions/setup-just@v1
uses: extractions/setup-just@v2

- name: Install Trunk for building the webapp
run: |
Expand All @@ -49,11 +49,11 @@ jobs:
run: just build-clearance

- name: Detect code style issues (push)
uses: pre-commit/action@v3.0.0
uses: pre-commit/action@v3.0.1
if: github.event_name == 'push'

- name: Detect code style issues (pull_request)
uses: pre-commit/action@v3.0.0
uses: pre-commit/action@v3.0.1
if: github.event_name == 'pull_request'
env:
SKIP: no-commit-to-branch

0 comments on commit 5dce844

Please sign in to comment.