Update action versions (#2441)
Fixes #2440 Co-authored-by: Leighton Chen <lechen@microsoft.com>
This commit is contained in:
parent
2718ffc7a7
commit
4e90498bf3
|
|
@ -16,7 +16,7 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
# history is needed to run git cherry-pick below
|
# history is needed to run git cherry-pick below
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
@ -40,4 +40,4 @@ jobs:
|
||||||
gh pr create --title "[$GITHUB_REF_NAME] $title" \
|
gh pr create --title "[$GITHUB_REF_NAME] $title" \
|
||||||
--body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
|
--body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
|
||||||
--head $branch \
|
--head $branch \
|
||||||
--base $GITHUB_REF_NAME
|
--base $GITHUB_REF_NAME
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
&& github.actor != 'opentelemetrybot'
|
&& github.actor != 'opentelemetrybot'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Check for CHANGELOG changes
|
- name: Check for CHANGELOG changes
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -33,4 +33,4 @@ jobs:
|
||||||
echo "No CHANGELOG was modified."
|
echo "No CHANGELOG was modified."
|
||||||
echo "Please add a CHANGELOG entry, or add the \"Skip Changelog\" label if not required."
|
echo "Please add a CHANGELOG entry, or add the \"Skip Changelog\" label if not required."
|
||||||
false
|
false
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -20,16 +20,16 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v3
|
||||||
with:
|
with:
|
||||||
languages: python
|
languages: python
|
||||||
|
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v1
|
uses: github/codeql-action/autobuild@v3
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v3
|
||||||
|
|
|
||||||
|
|
@ -104,16 +104,16 @@ jobs:
|
||||||
package: "grpc"
|
package: "grpc"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
|
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ env[matrix.python-version] }}
|
- name: Set up Python ${{ env[matrix.python-version] }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env[matrix.python-version] }}
|
python-version: ${{ env[matrix.python-version] }}
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
run: pip install tox
|
run: pip install tox
|
||||||
- name: Cache tox environment
|
- name: Cache tox environment
|
||||||
# Preserves .tox directory between runs for faster installs
|
# Preserves .tox directory between runs for faster installs
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.tox
|
.tox
|
||||||
|
|
|
||||||
|
|
@ -43,16 +43,16 @@ jobs:
|
||||||
package: "prometheus-remote-write"
|
package: "prometheus-remote-write"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
|
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ env[matrix.python-version] }}
|
- name: Set up Python ${{ env[matrix.python-version] }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env[matrix.python-version] }}
|
python-version: ${{ env[matrix.python-version] }}
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
run: pip install tox
|
run: pip install tox
|
||||||
- name: Cache tox environment
|
- name: Cache tox environment
|
||||||
# Preserves .tox directory between runs for faster installs
|
# Preserves .tox directory between runs for faster installs
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.tox
|
.tox
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ jobs:
|
||||||
prepare-patch-release:
|
prepare-patch-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
if [[ ! $GITHUB_REF_NAME =~ ^release/v[0-9]+\.[0-9]+\.x-0\.[0-9]+bx$ ]]; then
|
if [[ ! $GITHUB_REF_NAME =~ ^release/v[0-9]+\.[0-9]+\.x-0\.[0-9]+bx$ ]]; then
|
||||||
|
|
@ -50,7 +50,7 @@ jobs:
|
||||||
run: .github/scripts/update-version.sh $STABLE_VERSION $UNSTABLE_VERSION
|
run: .github/scripts/update-version.sh $STABLE_VERSION $UNSTABLE_VERSION
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
|
|
@ -79,4 +79,4 @@ jobs:
|
||||||
gh pr create --title "[$GITHUB_REF_NAME] $message" \
|
gh pr create --title "[$GITHUB_REF_NAME] $message" \
|
||||||
--body "$message." \
|
--body "$message." \
|
||||||
--head $branch \
|
--head $branch \
|
||||||
--base $GITHUB_REF_NAME
|
--base $GITHUB_REF_NAME
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ jobs:
|
||||||
prereqs:
|
prereqs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Verify prerequisites
|
- name: Verify prerequisites
|
||||||
env:
|
env:
|
||||||
|
|
@ -39,7 +39,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: prereqs
|
needs: prereqs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Create release branch
|
- name: Create release branch
|
||||||
env:
|
env:
|
||||||
|
|
@ -77,7 +77,7 @@ jobs:
|
||||||
run: .github/scripts/update-version.sh $STABLE_VERSION $UNSTABLE_VERSION
|
run: .github/scripts/update-version.sh $STABLE_VERSION $UNSTABLE_VERSION
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
|
|
@ -112,7 +112,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: prereqs
|
needs: prereqs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set environment variables
|
- name: Set environment variables
|
||||||
env:
|
env:
|
||||||
|
|
@ -161,7 +161,7 @@ jobs:
|
||||||
run: .github/scripts/update-version.sh $STABLE_NEXT_VERSION $UNSTABLE_NEXT_VERSION
|
run: .github/scripts/update-version.sh $STABLE_NEXT_VERSION $UNSTABLE_NEXT_VERSION
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
|
|
@ -192,4 +192,4 @@ jobs:
|
||||||
gh pr create --title "$message" \
|
gh pr create --title "$message" \
|
||||||
--body "$body" \
|
--body "$body" \
|
||||||
--head $branch \
|
--head $branch \
|
||||||
--base main
|
--base main
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ jobs:
|
||||||
name: Publish package from tag
|
name: Publish package from tag
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
- name: Log tag that triggered publish workflow
|
- name: Log tag that triggered publish workflow
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set environment variables
|
- name: Set environment variables
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -56,15 +56,15 @@ jobs:
|
||||||
|
|
||||||
# check out main branch to verify there won't be problems with merging the change log
|
# check out main branch to verify there won't be problems with merging the change log
|
||||||
# at the end of this workflow
|
# at the end of this workflow
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: main
|
ref: main
|
||||||
|
|
||||||
# back to the release branch
|
# back to the release branch
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# next few steps publish to pypi
|
# next few steps publish to pypi
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
|
|
||||||
|
|
@ -127,7 +127,7 @@ jobs:
|
||||||
--discussion-category announcements \
|
--discussion-category announcements \
|
||||||
v$UNSTABLE_VERSION
|
v$UNSTABLE_VERSION
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
# the step below is creating a pull request against main
|
# the step below is creating a pull request against main
|
||||||
ref: main
|
ref: main
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
|
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
run: sudo apt-get install -y libsnappy-dev
|
run: sudo apt-get install -y libsnappy-dev
|
||||||
- name: Cache tox environment
|
- name: Cache tox environment
|
||||||
# Preserves .tox directory between runs for faster installs
|
# Preserves .tox directory between runs for faster installs
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.tox
|
.tox
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue