Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
- Update action's versions
- Replace deprecated `::set-ouput` with `>> $GITHUB_OUTPUT`.
  See: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
  • Loading branch information
mkody committed Dec 26, 2024
1 parent 8c75739 commit f9c3428
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/buildDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@ defaults:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- id: set-version
run: |
version=$(python -c 'import sys, json; f=open("./settings.json");print(json.loads(f.read())["releaseVersion"])')
echo "::set-output name=version::$version"
echo "version=$version" >> $GITHUB_OUTPUT
- name: Set up hub
run: |
sudo apt install hub -y
- name: Set up Python 3.9
uses: actions/setup-python@v1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
if [ -f ../requirements.txt ]; then pip3 install -r ../requirements.txt; fi
- name: Create DeepSea Packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
run: |
python ./start.py -gt="$GITHUB_TOKEN"
- name: Create DevRelease
Expand All @@ -49,4 +49,4 @@ jobs:
done
hub release create "${assets[@]}" -d -m "DevRelease v${{ steps.set-version.outputs.version }}" "v${{ steps.set-version.outputs.version }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 10 additions & 10 deletions .github/workflows/buildRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,34 @@ defaults:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- id: set-version
run: |
version=$(python -c 'import sys, json; f=open("./settings.json");print(json.loads(f.read())["releaseVersion"])')
echo "::set-output name=version::$version"
echo "version=$version" >> $GITHUB_OUTPUT
- name: Set up hub
run: |
sudo apt install hub -y
- name: Set up Python 3.9
uses: actions/setup-python@v1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
if [ -f ../requirements.txt ]; then pip3 install -r ../requirements.txt; fi
- name: Create DeepSea Packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
run: |
python ./start.py -gt="$GITHUB_TOKEN"
- name: Create Release
run: |
set -x
Expand All @@ -49,4 +49,4 @@ jobs:
done
hub release create "${assets[@]}" -d -m "Release v${{ steps.set-version.outputs.version }}" "v${{ steps.set-version.outputs.version }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f9c3428

Please sign in to comment.