From f9bfb5c0e9dd3771dc992734699cf41d65fb7623 Mon Sep 17 00:00:00 2001 From: Sawood Alam Date: Wed, 22 Jul 2020 20:32:09 -0400 Subject: [PATCH 1/2] Update Action dependencies, fix #706 --- .github/workflows/build.yml | 2 +- .github/workflows/comment-run.yml | 8 ++++---- .github/workflows/dist.yml | 6 +++--- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 6 +++--- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 155831d2..09558555 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest name: Docker Image steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 - id: imgtagger run: | imgtags=$(echo "${{ github.ref }}" | sed 's/refs\/tags\//latest,/; s/refs\/heads\///') diff --git a/.github/workflows/comment-run.yml b/.github/workflows/comment-run.yml index c35a471d..f06b50f5 100644 --- a/.github/workflows/comment-run.yml +++ b/.github/workflows/comment-run.yml @@ -12,21 +12,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code (Deep) - uses: actions/checkout@master + uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up IPFS and Rub Daemon - uses: ibnesayeed/setup-ipfs@master + uses: ibnesayeed/setup-ipfs with: run_daemon: true - name: Set up Python - uses: actions/setup-python@master + uses: actions/setup-python@v2 - name: Install Test Dependencies run: pip install -r test-requirements.txt - name: Install IPWB from Source run: pip install . - name: Execute Code in Comment - uses: ibnesayeed/actions-comment-run@master + uses: ibnesayeed/actions-comment-run with: github-token: ${{ secrets.GITHUB_TOKEN }} allowed-associations: '["OWNER", "MEMBER"]' diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 2d0eb3c8..44bb8fd7 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -10,9 +10,9 @@ jobs: name: Build and Publish Package runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 - name: Set up Python 3.8 - uses: actions/setup-python@master + uses: actions/setup-python@v2 with: python-version: 3.8 - name: Upgrade setuptools and wheel @@ -20,7 +20,7 @@ jobs: - name: Build a binary wheel and a source tarball run: python setup.py sdist bdist_wheel - name: Publish package to PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish with: password: ${{ secrets.pypi_password }} # The PyPI API token (password) was generated as per https://pypi.org/help/#apitoken diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8ff36018..fe87a815 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest name: Py and JS steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 - name: Lint JavaScript run: | npm install standard diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2caeb32b..9430eeb5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 - name: Extract Repo Attributes id: attrs - uses: ibnesayeed/repo-attrs@master + uses: ibnesayeed/repo-attrs - name: Draft Release id: create_release uses: actions/create-release@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3ba0b5c8..4f11e364 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,13 +24,13 @@ jobs: runs-on: ${{ matrix.os }} name: ${{ matrix.os }} Py-${{ matrix.python }} IPFS-${{ matrix.ipfs }} steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@master + uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} - name: Set up IPFS ${{ matrix.ipfs }} - uses: ibnesayeed/setup-ipfs@master + uses: ibnesayeed/setup-ipfs with: ipfs_version: ${{ matrix.ipfs }} run_daemon: true From 443262ad8ddb68549cfb1203bdadd5cbb0ce3246 Mon Sep 17 00:00:00 2001 From: Sawood Alam Date: Wed, 22 Jul 2020 20:43:04 -0400 Subject: [PATCH 2/2] Include branch reference as it is mandatory --- .github/workflows/comment-run.yml | 4 ++-- .github/workflows/dist.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/comment-run.yml b/.github/workflows/comment-run.yml index f06b50f5..8ef604fb 100644 --- a/.github/workflows/comment-run.yml +++ b/.github/workflows/comment-run.yml @@ -16,7 +16,7 @@ jobs: with: fetch-depth: 0 - name: Set up IPFS and Rub Daemon - uses: ibnesayeed/setup-ipfs + uses: ibnesayeed/setup-ipfs@master with: run_daemon: true - name: Set up Python @@ -26,7 +26,7 @@ jobs: - name: Install IPWB from Source run: pip install . - name: Execute Code in Comment - uses: ibnesayeed/actions-comment-run + uses: ibnesayeed/actions-comment-run@master with: github-token: ${{ secrets.GITHUB_TOKEN }} allowed-associations: '["OWNER", "MEMBER"]' diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 44bb8fd7..97dc6421 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -20,7 +20,7 @@ jobs: - name: Build a binary wheel and a source tarball run: python setup.py sdist bdist_wheel - name: Publish package to PyPI - uses: pypa/gh-action-pypi-publish + uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.pypi_password }} # The PyPI API token (password) was generated as per https://pypi.org/help/#apitoken diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9430eeb5..2caeb32b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 - name: Extract Repo Attributes id: attrs - uses: ibnesayeed/repo-attrs + uses: ibnesayeed/repo-attrs@master - name: Draft Release id: create_release uses: actions/create-release@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4f11e364..cf774c07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: with: python-version: ${{ matrix.python }} - name: Set up IPFS ${{ matrix.ipfs }} - uses: ibnesayeed/setup-ipfs + uses: ibnesayeed/setup-ipfs@master with: ipfs_version: ${{ matrix.ipfs }} run_daemon: true