From 96ab422aa6dfc39d30068e138f07995db7b39598 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Mon, 12 Aug 2019 14:18:06 +0900 Subject: [PATCH] Convert main.workflow to v2 yml --- .github/main.workflow | 15 --------------- .github/workflows/push.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 15 deletions(-) delete mode 100644 .github/main.workflow create mode 100644 .github/workflows/push.yml diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 5a97e83..0000000 --- a/.github/main.workflow +++ /dev/null @@ -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"] -} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..259a877 --- /dev/null +++ b/.github/workflows/push.yml @@ -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 }}