aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-11-14 01:27:34 +0100
committerKamil Doległo <kamilok1965@interia.pl>2020-11-14 01:27:34 +0100
commitd6c798e44381fd436a264229f94f19528382c136 (patch)
tree87b4d2fda3f0e3326a05be17d8d237a9e01d8b6d
parent0cba9d84bdc8e19d8c94ae3a905d4fd2484170db (diff)
downloaddokka-d6c798e44381fd436a264229f94f19528382c136.tar.gz
dokka-d6c798e44381fd436a264229f94f19528382c136.tar.bz2
dokka-d6c798e44381fd436a264229f94f19528382c136.zip
Fix a bug in s3 cleanup action
-rw-r--r--.github/workflows/s3-cleanup.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/.github/workflows/s3-cleanup.yml b/.github/workflows/s3-cleanup.yml
index 5193290d..19876bf2 100644
--- a/.github/workflows/s3-cleanup.yml
+++ b/.github/workflows/s3-cleanup.yml
@@ -3,7 +3,6 @@ name: S3-cleanup
on: delete
env:
- branch-name: ${GITHUB_REF#refs/heads/}
bucket-name: 'dokka-snapshots'
jobs:
@@ -18,4 +17,4 @@ jobs:
aws-region: eu-central-1
- name: Delete branch from s3
- run: aws s3 --recursive rm s3://${{ env.bucket-name }}/${{ env.branch-name }}
+ run: aws s3 --recursive rm s3://${{ env.bucket-name }}/${{ github.event.ref }}