aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/s3-cleanup.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/s3-cleanup.yml')
-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 }}