From f9017d5921efa159a1c01aa82023b2a96b8a752a Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 10 Sep 2024 07:42:56 -0400 Subject: [PATCH] forgejo-ci: use default actions --- .forgejo/workflows/cleanup.yaml | 2 +- .forgejo/workflows/deploy.yaml | 4 ++-- .forgejo/workflows/preview.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/cleanup.yaml b/.forgejo/workflows/cleanup.yaml index 084cf3d..69921a7 100644 --- a/.forgejo/workflows/cleanup.yaml +++ b/.forgejo/workflows/cleanup.yaml @@ -12,7 +12,7 @@ jobs: run: | apk add git nodejs jq coreutils curl tree gawk grep - name: Public repo pull - uses: https://github.com/actions/checkout@v4 + uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.PAGES_TOKEN }} diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 929cde1..91fc4ff 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -14,11 +14,11 @@ jobs: run: | apk add git nodejs openssh-client-common openssh-client-default - name: Start ssh-agent - uses: https://github.com/webfactory/ssh-agent@v0.9.0 + uses: actions/ssh-agent@v0.9.0 with: ssh-private-key: ${{ secrets.PAGES_PRIVKEY }} - name: Repo pull - uses: https://github.com/actions/checkout@v4 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Website upload diff --git a/.forgejo/workflows/preview.yaml b/.forgejo/workflows/preview.yaml index ca58fdd..3ad603e 100644 --- a/.forgejo/workflows/preview.yaml +++ b/.forgejo/workflows/preview.yaml @@ -13,12 +13,12 @@ jobs: apk add git ikiwiki po4a perl-yaml-tiny tree nodejs jq coreutils curl echo "GITHUB_PR_NAME=$(curl -Ls ${{ github.server_url }}/api/v1/repos/${{ github.repository }}/pulls/${{ github.ref_name }} | jq .title | tr ' ' '-' | tr -d ':' | tr -d '"' | tr '[:upper:]' '[:lower:]' | tr '/' '-')" >> $GITHUB_ENV - name: Repo pull - uses: https://github.com/actions/checkout@v4 + uses: actions/checkout@v4 with: fetch-depth: 1 token: ${{ secrets.PAGES_TOKEN }} - name: Public repo pull - uses: https://github.com/actions/checkout@v4 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: public