From b0a3301cb2f1c9de083afd596b08124d61226d3e Mon Sep 17 00:00:00 2001 From: Ningxin Hu Date: Tue, 16 Mar 2021 11:00:29 +0800 Subject: [PATCH 1/2] Fix build and deploy github actions --- .github/workflows/build.yaml | 2 +- .github/workflows/deploy.yaml | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 27c1c4d0..97fbcef4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,6 +6,6 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2.3.1 - run: touch index.bs - run: make online=1 diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 9e091d7f..1795477a 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -10,9 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 - with: - persist-credentials: false + uses: actions/checkout@v2.3.1 - name: Build run: | @@ -20,9 +18,7 @@ jobs: make online=1 - name: Deploy - uses: JamesIves/github-pages-deploy-action@3.7.1 + uses: JamesIves/github-pages-deploy-action@4.1.0 with: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - BRANCH: gh-pages - FOLDER: . - CLEAN: true + branch: gh-pages + folder: . From 78a1fdc21dfad740dad6913d2157461b2b0304e4 Mon Sep 17 00:00:00 2001 From: Ningxin Hu Date: Tue, 16 Mar 2021 14:22:42 +0800 Subject: [PATCH 2/2] Add dependabot.yml to update github actions --- .github/dependabot.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..57370551 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +# Set update schedule for GitHub Actions + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every weekday + interval: "daily"