Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crohr committed May 30, 2024
1 parent d03e133 commit fc7692f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
matrix:
target:
- debian:10
# - debian:11
# - debian:12
# - ubuntu:20.04
# - ubuntu:22.04
# - ubuntu:24.04
# - el:7
# - el:8
# - el:9
# - sles:12
# - sles:15
- debian:11
- debian:12
- ubuntu:20.04
- ubuntu:22.04
- ubuntu:24.04
- el:7
- el:8
- el:9
- sles:12
- sles:15

steps:
- uses: actions/checkout@v4
Expand All @@ -28,11 +28,7 @@ jobs:
with:
repository: crohr/blank-sinatra-app
ref: master
fetch-depth: 0
path: app
- run: |
ls -al app action || true
pwd
- uses: ./action/package
id: package
with:
Expand Down
7 changes: 6 additions & 1 deletion package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ runs:
codename=${{ inputs.target }}
codename=${codename/:/}
codename=${codename%%.*}
echo "iteration=$(date +%s).$(git rev-parse HEAD | cut -c1-7).$codename" >> $GITHUB_OUTPUT
iteration="$(date +%s)"
if [ -n "$(git rev-parse HEAD)" ]; then
iteration="$iteration.$(git rev-parse HEAD | cut -c1-7)"
fi
iteration="$iteration.$codename"
echo "iteration=$iteration" >> $GITHUB_OUTPUT
- name: Cache
uses: actions/cache@v4
with:
Expand Down

0 comments on commit fc7692f

Please sign in to comment.