From 39c71a76e5654165cec49a1b5c41b31307bac27a Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Thu, 10 Oct 2019 23:39:57 +0200 Subject: [PATCH] Add tests for Action syntax --- .github/workflows/build.yml | 20 ++++++++++++++++++++ .github/workflows/dockerimage.yml | 14 -------------- 2 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/dockerimage.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0c15c7d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Action CI + +on: [push] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Build Docker image + run: docker build . --tag my-image-name:$(date +%s) + - name: Verify action syntax + # The action should not publish any real changes, but should succeed. + uses: './' + with: + github_token: '${{ secrets.GITHUB_TOKEN }}' + branch: '${{ github.ref }}' \ No newline at end of file diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml deleted file mode 100644 index 1514588..0000000 --- a/.github/workflows/dockerimage.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Docker Image CI - -on: [push] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)