Skip to content

Commit

Permalink
Merge pull request #76 from chrovis/fix/actions
Browse files Browse the repository at this point in the history
Upgrade actions
  • Loading branch information
nokara26 authored Apr 25, 2023
2 parents e51d56c + b98a7a3 commit 60e0702
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
clojure: ['1.8', '1.9', '1.10', '1.11']
name: Test with Java ${{ matrix.java }} and Clojure ${{ matrix.clojure }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-lein-${{ hashFiles('**/project.clj') }}
Expand All @@ -32,8 +32,8 @@ jobs:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-lein-${{ hashFiles('**/project.clj') }}
Expand All @@ -57,19 +57,18 @@ jobs:
outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Get version
id: get-version
run: |
echo ::set-output \
name=version::$(head -n 1 project.clj | sed -e 's/^(defproject.*"\(.*\)"$/\1/')
echo "version=$(head -n 1 project.clj | sed -e 's/^(defproject.*"\(.*\)"$/\1/')" >> $GITHUB_OUTPUT
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: [test, get-version]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit 60e0702

Please sign in to comment.