From 107287a53a54ba445a211edf55e729ba4e5550bd Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Wed, 15 May 2024 10:58:10 +0200 Subject: [PATCH] Use action for promotion --- .github/workflows/docs.yml | 4 ++-- .github/workflows/tests.yml | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d085d154a..c15369f2b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,10 +19,10 @@ jobs: steps: - name: Checkout current commit - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Checkout gh-pages - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: gh-pages path: gh-pages diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f09917eba..7c5411953 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,7 +33,7 @@ jobs: ARANGO_LICENSE_KEY: ${{ secrets.ARANGO_LICENSE_KEY }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: apk add jq - run: npm install -g npm@10 - run: npm install @@ -63,7 +63,7 @@ jobs: ARANGO_NO_AUTH: 1 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: apt-get update && apt-get install jq wget gnupg -y - run: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - - run: sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' @@ -78,9 +78,11 @@ jobs: if: ${{ github.ref == 'refs/heads/main' }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.GH_TOKEN }} - - run: git fetch . HEAD:stable - - run: git push origin stable + - uses: Embraser01/update-git-branch-action@v1.0.0 + with: + branch: stable + githubToken: ${{ secrets.GH_TOKEN }}