Convert main.workflow to v2 yml

This commit is contained in:
Peter Evans 2019-08-12 14:18:06 +09:00
parent 09a017779e
commit 96ab422aa6
2 changed files with 17 additions and 15 deletions

15
.github/main.workflow vendored
View file

@ -1,15 +0,0 @@
workflow "Update Docker Hub Description" {
resolves = ["Docker Hub Description"]
on = "push"
}
action "Filter master branch" {
uses = "actions/bin/filter@master"
args = "branch master"
}
action "Docker Hub Description" {
needs = ["Filter master branch"]
uses = "./"
secrets = ["DOCKERHUB_USERNAME", "DOCKERHUB_PASSWORD", "DOCKERHUB_REPOSITORY"]
}

17
.github/workflows/push.yml vendored Normal file
View file

@ -0,0 +1,17 @@
on: push
name: Update Docker Hub Description
jobs:
dockerHubDescription:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Filter master branch
uses: actions/bin/filter@master
with:
args: branch master
- name: Docker Hub Description
uses: ./
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
DOCKERHUB_REPOSITORY: ${{ secrets.DOCKERHUB_REPOSITORY }}