diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1fee76b..b42f840 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ on: push jobs: - different-artifacts_dir: + different-artifacts-dir: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -9,16 +9,16 @@ jobs: env: DEB_BUILD_OPTIONS: noautodbgsym with: - artifacts_dir: my_artifacts - buildpackage_opts: --build=binary --no-sign - source_dir: test + artifacts-dir: my_artifacts + buildpackage-opts: --build=binary --no-sign + source-dir: test - run: | dpkg --info my_artifacts/test_1_amd64.deb dpkg --contents my_artifacts/test_1_amd64.deb | grep ./usr/bin/mybin test -f my_artifacts/test_1_amd64.buildinfo test -f my_artifacts/test_1_amd64.changes - different-docker_image: + different-docker-image: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -26,9 +26,9 @@ jobs: env: DEB_BUILD_OPTIONS: noautodbgsym with: - buildpackage_opts: --build=binary --no-sign - docker_image: ubuntu:latest - source_dir: test + buildpackage-opts: --build=binary --no-sign + docker-image: ubuntu:latest + source-dir: test - run: | dpkg --info debian/artifacts/test_1_amd64.deb dpkg --contents debian/artifacts/test_1_amd64.deb | grep ./usr/bin/mybin @@ -41,8 +41,8 @@ jobs: - uses: actions/checkout@v2 - uses: ./ with: - buildpackage_opts: --build=binary --no-sign - source_dir: test + buildpackage-opts: --build=binary --no-sign + source-dir: test - run: | dpkg --info debian/artifacts/test_1_amd64.deb dpkg --info debian/artifacts/test-dbgsym_1_amd64.deb @@ -59,8 +59,8 @@ jobs: env: DEB_BUILD_OPTIONS: noautodbgsym with: - buildpackage_opts: --build=binary --no-sign - source_dir: test + buildpackage-opts: --build=binary --no-sign + source-dir: test - run: | dpkg --info debian/artifacts/test_1_amd64.deb dpkg --contents debian/artifacts/test_1_amd64.deb | grep ./usr/bin/mybin diff --git a/action.yml b/action.yml index c74a941..e316ce1 100644 --- a/action.yml +++ b/action.yml @@ -2,24 +2,24 @@ author: Jörn-Thorben Hinz name: Build Debian packages description: Build Debian packages with dpkg-buildpackage in a flexible environment. inputs: - apt_opts: + apt-opts: description: Options to be passed to apt-get required: false - artifacts_dir: + artifacts-dir: default: debian/artifacts description: Directory path relative to $GITHUB_WORKSPACE to place the built packages in required: false - buildpackage_opts: + buildpackage-opts: description: Options to be passed to dpkg-buildpackage required: false - docker_image: + docker-image: default: debian:stable-slim description: Name of a Docker image to build inside required: false - extra_build_deps: + extra-build-deps: description: Extra packages to be installed as build dependencies required: false - source_dir: + source-dir: default: '' description: Path relative to $GITHUB_WORKSPACE that contains the package sources required: false diff --git a/scripts/run.sh b/scripts/run.sh index 3a9a3a2..819c8d0 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -36,7 +36,7 @@ case "$(realpath --canonicalize-missing -- "$INPUT_ARTIFACTS_DIR")" in /github/workspace*) ;; *) - bdp_error "artifacts_dir is not in GITHUB_WORKSPACE" + bdp_error "artifacts-dir is not in GITHUB_WORKSPACE" exit 2 ;; esac @@ -46,7 +46,7 @@ case "$(realpath --canonicalize-missing -- "$INPUT_SOURCE_DIR")" in /github/workspace*) ;; *) - bdp_error "source_dir is not in GITHUB_WORKSPACE" + bdp_error "source-dir is not in GITHUB_WORKSPACE" exit 2 ;; esac