diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index e6a8ffc..75c64f9 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -12,11 +12,7 @@ jobs: - # https://github.com/actions/checkout name: Checkout - uses: actions/checkout@v1 - - - # https://github.com/actions/checkout/issues/6 - name: Fix detached HEAD - run: git checkout ${GITHUB_REF#refs/heads/} + uses: actions/checkout@v2 - name: Build run: | diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 6b4ccb2..2e0afc8 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -15,7 +15,7 @@ jobs: - # https://github.com/actions/checkout name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - # https://github.com/crazy-max/ghaction-github-labeler name: Run Labeler diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 72da253..14e11fc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: - # https://github.com/actions/checkout name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - # https://github.com/actions/setup-node name: Set up Node diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1fd86e7..f8a230a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Build run: | diff --git a/README.md b/README.md index 3acc31a..d0b9c0b 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ If you are interested, [check out](https://git.io/Je09Y) my other :octocat: GitH ## Usage -Below is a simple snippet to deploy to GitHub Pages. A [test workflow](https://github.com/crazy-max/ghaction-github-pages/actions?query=workflow%3Atest) is also available for this repository and deploys to GitHub pages at https://crazy-max.github.io/ghaction-github-pages/. +Below is a simple snippet to deploy to GitHub Pages: ```yaml name: website @@ -25,7 +25,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Build run: | @@ -42,7 +42,7 @@ jobs: EOL - - name: Deploy + name: Deploy to GitHub Pages if: success() uses: crazy-max/ghaction-github-pages@v1 with: @@ -52,6 +52,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` +A [test workflow](https://github.com/crazy-max/ghaction-github-pages/actions?query=workflow%3Atest) is also available for this repository and deploys to GitHub pages at https://crazy-max.github.io/ghaction-github-pages/. + ## Customizing ### inputs