Merge pull request #16 from ad-m/action-syntax

Add tests for Action syntax
This commit is contained in:
Adam Dobrawy 2019-10-15 01:40:45 +02:00 committed by GitHub
commit 528406467d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 14 deletions

20
.github/workflows/build.yml vendored Normal file
View File

@ -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 }}'

View File

@ -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)