Update GH Actions (#3361)

* update actions to use checkout version 4

* update upload-artifact action
This commit is contained in:
Klaus Rettinghaus
2023-10-09 22:08:28 +02:00
committed by GitHub
parent f54d4c7f0a
commit 89718c8a62
6 changed files with 23 additions and 23 deletions

View File

@@ -121,13 +121,13 @@ jobs:
fi fi
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push' if: github.event_name == 'push'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: master ref: master
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
@@ -143,7 +143,7 @@ jobs:
echo "================================" echo "================================"
echo "VERSION=${last_committed_tag:1}" >> $GITHUB_ENV echo "VERSION=${last_committed_tag:1}" >> $GITHUB_ENV
- name: Get packpack tool - name: Get packpack tool
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: ${{ env.PACKPACK_REPO }} repository: ${{ env.PACKPACK_REPO }}
path: tools path: tools
@@ -240,13 +240,13 @@ jobs:
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push' if: github.event_name == 'push'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: master ref: master
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
@@ -262,7 +262,7 @@ jobs:
echo "================================" echo "================================"
echo "VERSION=${last_committed_tag:1}" >> $GITHUB_ENV echo "VERSION=${last_committed_tag:1}" >> $GITHUB_ENV
- name: Get packpack tool - name: Get packpack tool
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: ${{ env.PACKPACK_REPO }} repository: ${{ env.PACKPACK_REPO }}
path: tools path: tools
@@ -352,13 +352,13 @@ jobs:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push' if: github.event_name == 'push'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: master ref: master
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
@@ -466,13 +466,13 @@ jobs:
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push' if: github.event_name == 'push'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: master ref: master
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
@@ -532,13 +532,13 @@ jobs:
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push' if: github.event_name == 'push'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: master ref: master
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}

View File

@@ -45,7 +45,7 @@ jobs:
steps: steps:
- name: Checkout Source code - name: Checkout Source code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Install Qt - name: Install Qt
run: brew install qt@5 cmake run: brew install qt@5 cmake

View File

@@ -54,14 +54,14 @@ jobs:
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push' if: github.event_name == 'push'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
# ref: master # ref: master
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
@@ -197,7 +197,7 @@ jobs:
echo $(python $GITHUB_WORKSPACE/scripts/upload_services/transferwee.py upload $GITHUB_WORKSPACE/build/Package/portable/flameshot-${VERSION}-${{ matrix.config.pak_arch }}.zip) echo $(python $GITHUB_WORKSPACE/scripts/upload_services/transferwee.py upload $GITHUB_WORKSPACE/build/Package/portable/flameshot-${VERSION}-${{ matrix.config.pak_arch }}.zip)
echo "=====no operation for you can see link in the log console=====" echo "=====no operation for you can see link in the log console====="
- name: Artifact Upload - name: Artifact Upload
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Windows-artifact name: Windows-artifact
path: ${{ github.workspace }}/build/Package/* path: ${{ github.workspace }}/build/Package/*

View File

@@ -27,11 +27,11 @@ jobs:
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push' if: github.event_name == 'push'
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
@@ -97,7 +97,7 @@ jobs:
} }
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Cache Qt - name: Cache Qt
id: cache-qt id: cache-qt

View File

@@ -9,10 +9,10 @@ jobs:
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push' if: github.event_name == 'push'
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
- uses: DoozyX/clang-format-lint-action@v0.13 - uses: DoozyX/clang-format-lint-action@v0.13

View File

@@ -22,7 +22,7 @@ jobs:
git+https://github.com/veracioux/mkdoxy@v1.0.0 git+https://github.com/veracioux/mkdoxy@v1.0.0
- name: Checkout flameshot source - name: Checkout flameshot source
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
path: 'flameshot' path: 'flameshot'
@@ -32,7 +32,7 @@ jobs:
make build make build
- name: Checkout flameshot website - name: Checkout flameshot website
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: 'flameshot-org/flameshot-org.github.io' repository: 'flameshot-org/flameshot-org.github.io'
ref: 'gh-pages' ref: 'gh-pages'