Track major version for official GitHub helpers in actions

This commit is contained in:
Ilya Fedin 2024-05-13 19:46:18 +04:00 committed by John Preston
parent 15697f4f2b
commit 6ebbca58e8
7 changed files with 16 additions and 16 deletions

View File

@ -20,7 +20,7 @@ jobs:
steps:
- name: Clone.
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4
with:
submodules: recursive

View File

@ -58,7 +58,7 @@ jobs:
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Clone.
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4
with:
submodules: recursive
path: ${{ env.REPO_NAME }}
@ -116,7 +116,7 @@ jobs:
cd $REPO_NAME/out/Debug
sudo mkdir artifact
sudo mv {Telegram,Updater} artifact/
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v2
if: env.UPLOAD_ARTIFACT == 'true'
name: Upload artifact.
with:

View File

@ -56,7 +56,7 @@ jobs:
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Clone.
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4
with:
submodules: recursive
path: ${{ env.REPO_NAME }}
@ -76,7 +76,7 @@ jobs:
- name: ThirdParty cache.
id: cache-third-party
uses: actions/cache@v4.0.2
uses: actions/cache@v4
with:
path: ThirdParty
key: ${{ runner.OS }}-third-party-${{ hashFiles(format('{0}/{1}', env.REPO_NAME, env.PREPARE_PATH)) }}
@ -84,7 +84,7 @@ jobs:
- name: Libraries cache.
id: cache-libs
uses: actions/cache@v4.0.2
uses: actions/cache@v4
with:
path: Libraries
key: ${{ runner.OS }}-libs-${{ hashFiles(format('{0}/{1}', env.REPO_NAME, env.PREPARE_PATH)) }}
@ -134,7 +134,7 @@ jobs:
mkdir artifact
mv Telegram.app artifact/
mv Updater artifact/
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v2
if: env.UPLOAD_ARTIFACT == 'true'
name: Upload artifact.
with:

View File

@ -60,7 +60,7 @@ jobs:
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Clone.
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4
with:
submodules: recursive
path: ${{ env.REPO_NAME }}
@ -99,7 +99,7 @@ jobs:
- name: WebRTC cache.
id: cache-webrtc
uses: actions/cache@v4.0.2
uses: actions/cache@v4
with:
path: ${{ env.LibrariesPath }}/tg_owt
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}-${{ hashFiles('**/tg_owt-version.json') }}
@ -153,7 +153,7 @@ jobs:
cd $REPO_NAME/build
mkdir artifact
mv Telegram.dmg artifact/
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v2
if: env.UPLOAD_ARTIFACT == 'true'
name: Upload artifact.
with:

View File

@ -11,7 +11,7 @@ jobs:
SKIP: "0"
to_branch: "master"
steps:
- uses: actions/checkout@v4.1.4
- uses: actions/checkout@v4
with:
fetch-depth: 0
if: env.SKIP == '0'

View File

@ -47,7 +47,7 @@ jobs:
steps:
- name: Clone.
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
@ -75,7 +75,7 @@ jobs:
mkdir artifact
mv $artifact_name artifact
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v2
if: env.UPLOAD_ARTIFACT == 'true'
name: Upload artifact.
with:

View File

@ -75,7 +75,7 @@ jobs:
arch: ${{ matrix.arch }}
- name: Clone.
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4
with:
submodules: recursive
path: ${{ env.TBUILD }}\${{ env.REPO_NAME }}
@ -96,7 +96,7 @@ jobs:
- name: Libraries cache.
id: cache-libs
uses: actions/cache@v4.0.2
uses: actions/cache@v4
with:
path: ${{ env.TBUILD }}\Libraries
key: ${{ runner.OS }}-${{ matrix.arch }}-libs-${{ env.CACHE_KEY }}
@ -183,7 +183,7 @@ jobs:
mkdir artifact
move %OUT%\Telegram.exe artifact/
move %OUT%\Updater.exe artifact/
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v2
name: Upload artifact.
if: (env.UPLOAD_ARTIFACT == 'true') || (github.ref == 'refs/heads/nightly')
with: