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: steps:
- name: Clone. - name: Clone.
uses: actions/checkout@v4.1.4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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