Skip to content

Commit c083ba3

Browse files
author
Aaron Roller
committed
trying to clean package directory to remove root owned files AM-23/fast-build
1 parent 2d43fca commit c083ba3

4 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM alpine
2+
3+
# Copies your code file from your action repository to the filesystem path `/` of the container
4+
COPY entrypoint.sh /entrypoint.sh
5+
6+
# Code file to execute when the docker container starts up (`entrypoint.sh`)
7+
ENTRYPOINT ["/entrypoint.sh"]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# see package.yml for usage
2+
name: 'Clean'
3+
description: 'Deletes all files in the work directory.'
4+
5+
runs:
6+
using: 'docker'
7+
image: 'Dockerfile'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -e # fail on error
4+
5+
rm -rf *
6+

.github/workflows/package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
os: [ubuntu-18.04, [self-hosted,linux,arm64]]
1212
fail-fast: false
1313
steps:
14+
- uses: ./github/actions/clean@local
1415
- uses: actions/checkout@v2
1516
- name: Package
1617
id: package

0 commit comments

Comments
 (0)