diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 20a0f33256..0000000000 --- a/.github/main.workflow +++ /dev/null @@ -1,32 +0,0 @@ -workflow "Build & Release Manifest" { - on = "push" - resolves = ["manifest-build-and-tag"] -} - -action "manifest-build-and-tag" { - uses = "./tools/docker/github" - runs = ["python", "tools/ci/manifest_build.py"] - secrets = ["GITHUB_TOKEN"] -} - -workflow "Build & Publish Documentation Website" { - on = "push" - resolves = ["website-build-and-publish"] -} - -action "website-build-and-publish" { - uses = "./tools/docker/documentation" - runs = ["/bin/bash", "tools/ci/website_build.sh"] - secrets = ["DEPLOY_TOKEN"] -} - -workflow "Synchronize the Pull Request Preview" { - on = "pull_request" - resolves = "update-pr-preview" -} - -action "update-pr-preview" { - uses = "./tools/docker/github" - runs = ["python", "tools/ci/update_pr_preview.py", "https://api.github.com"] - secrets = ["GITHUB_TOKEN"] -} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000000..0a4e2ee4ff --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,16 @@ +on: pull_request +name: Synchronize the Pull Request Preview +jobs: + update-pr-preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1.0.0 + with: + ref: refs/heads/master + - name: update-pr-preview + uses: ./tools/docker/github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + entrypoint: python + args: tools/ci/update_pr_preview.py https://api.github.com diff --git a/tools/ci/update_pr_preview.py b/tools/ci/update_pr_preview.py index 9b104c66bb..c5d2e95655 100644 --- a/tools/ci/update_pr_preview.py +++ b/tools/ci/update_pr_preview.py @@ -250,6 +250,9 @@ def main(api_root): if __name__ == '__main__': + import subprocess + logger.info(subprocess.check_output(['git', 'status'])) + logger.info(subprocess.check_output(['git', 'log', '-n1'])) code = main(sys.argv[1]) assert isinstance(code, int) sys.exit(code)