You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2024/01/10 12:24:51 UTC
(camel-website) branch main updated: chore: update GitHub actions
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/main by this push:
new 2d829173 chore: update GitHub actions
2d829173 is described below
commit 2d82917385e46ef9c97b86893be0872678e9aa01
Author: Zoran Regvart <zo...@regvart.com>
AuthorDate: Wed Jan 10 11:01:35 2024 +0100
chore: update GitHub actions
Main motivation here is to get faster artifact uploads, which currently
take up significant time of the workflow.
---
.github/workflows/main-push-ui-bundle.yml | 4 ++--
.github/workflows/pr.yaml | 4 ++--
.github/workflows/preview.yaml | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/main-push-ui-bundle.yml b/.github/workflows/main-push-ui-bundle.yml
index f009c541..682d4bc5 100644
--- a/.github/workflows/main-push-ui-bundle.yml
+++ b/.github/workflows/main-push-ui-bundle.yml
@@ -26,13 +26,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
- name: Check cache
run: yarn check:dependencies
- name: Build
run: yarn workspace antora-ui-camel run build
- name: Create Pull Request
- uses: peter-evans/create-pull-request@v3
+ uses: peter-evans/create-pull-request@v5
with:
base: main
token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml
index e0a5ccbd..1e726ef5 100644
--- a/.github/workflows/pr.yaml
+++ b/.github/workflows/pr.yaml
@@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
- name: Check cache
run: yarn check:dependencies
- name: Build
@@ -42,7 +42,7 @@ jobs:
mkdir pull_request
echo ${{ github.event.pull_request.number }} > ./pull_request/number
- name: Upload artifacts
- uses: actions/upload-artifact@v2
+ uses: actions/upload-artifact@v4
with:
name: website
path: |
diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml
index 8c337c18..4aaa2a27 100644
--- a/.github/workflows/preview.yaml
+++ b/.github/workflows/preview.yaml
@@ -31,9 +31,9 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
- name: Download pull request artifact
- uses: actions/github-script@v4
+ uses: actions/github-script@v7
with:
script: |
const artifacts = await github.actions.listWorkflowRunArtifacts({
@@ -65,7 +65,7 @@ jobs:
DEPLOY_URL=$(yarn preview:netlify --alias="pr-${PR_NUMBER}" --message="Preview for ${PR_URL}" --json 2> /dev/null |jq -r .deploy_url)
echo "DEPLOY_URL=${DEPLOY_URL}" >> $GITHUB_ENV
echo "ISSUE_NUMBER=${PR_NUMBER}" >> $GITHUB_ENV
- - uses: actions/github-script@v3
+ - uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |