diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index efdb9adb..1a2287b9 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -48,15 +48,15 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3.1.0 with: fetch-depth: 0 - name: get changed files id: getfile run: | - echo "::set-output name=files::$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} docker-mods/| xargs)" + echo "files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} docker-mods/| xargs)" >> $GITHUB_ENV - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v2.1.0 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -64,7 +64,7 @@ jobs: - name: find correct directory then build&push if: ${{ github.event_name == 'push' }} run: | - for i in ${{ steps.getfile.outputs.files }} + for i in ${{ env.files }} do directory="$( echo $i | cut -d'/' -f2 -s )" if [ -z "$directory" ]; then @@ -95,22 +95,22 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3.1.0 with: fetch-depth: 0 - name: get changed files id: getfile run: | - echo "::set-output name=files::$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} docker-mods/| xargs)" + echo "files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} docker-mods/| xargs)" >> $GITHUB_ENV - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v2.1.0 with: username: ${{ secrets.DH_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: find correct directory then build&push if: ${{ github.event_name == 'push' }} run: | - for i in ${{ steps.getfile.outputs.files }} + for i in ${{ env.files }} do directory="$( echo $i | cut -d'/' -f2 -s )" if [ -z "$directory" ]; then diff --git a/.github/workflows/minify-and-deploy.yml b/.github/workflows/minify-and-deploy.yml index 09e4dbb3..f728db63 100644 --- a/.github/workflows/minify-and-deploy.yml +++ b/.github/workflows/minify-and-deploy.yml @@ -23,7 +23,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 with: fetch-depth: 0 - name: Wrong domain check @@ -34,7 +34,7 @@ jobs: exit 1 fi - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4.3.0 - name: Run themes.py run: | python themes.py @@ -63,7 +63,7 @@ jobs: fi done - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v3.8.0 if: ${{ github.ref == 'refs/heads/master' || github.event.inputs.branch == 'master' }} with: publish_dir: ./ @@ -71,7 +71,7 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} exclude_assets: '' - name: Deploy Develop - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v3.8.0 if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }} with: publish_dir: ./ @@ -79,7 +79,7 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} exclude_assets: '' - name: Deploy Testing - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v3.8.0 if: ${{ github.ref == 'refs/heads/testing' || github.event.inputs.branch == 'testing' }} with: publish_dir: ./