Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows: Upgrade actions to latest versions. #356

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Log into registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ jobs:

steps:
- name: Checkout branch with changes
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: current
- name: Checkout master branch
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: master
ref: master
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup environment variables
Expand Down Expand Up @@ -97,12 +97,12 @@ jobs:
true; done < ./artifacts-diff/files.list
sed -i '/Diff to HTML by/d' ./artifacts-diff/*
- name: Upload generated policies
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: capirca_output_${{ matrix.python-version }}_${{ env.wfdt }}
path: ./artifacts/capirca_output_${{ env.wfdt }}.zip
- name: Upload policy differences
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: capirca_output_policy_diff
path: ./artifacts-diff
4 changes: 2 additions & 2 deletions .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-${{ matrix.python-version}}-pip-test-${{ hashFiles('setup.py','requirements.txt','test-requirements.txt') }}
Expand All @@ -31,7 +31,7 @@ jobs:
${{ runner.os }}-${{ matrix.python-version}}-pip-
${{ runner.os }}-${{ matrix.python-version}}-
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.3.3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -46,7 +46,7 @@ jobs:
aclgen --output_directory .\output --logtostderr
powershell Compress-Archive -Force output\* output.zip
- name: Upload generated policies
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: capirca_output_${{ matrix.python-version }}
path: ./output.zip