Skip to content

Commit

Permalink
ci: update workflow actions to fix deprecates (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Mar 25, 2024
1 parent fcc58c4 commit 32321e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/BuildTrain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:

- name: Create empty release
id: release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: ${{ steps.armbian-version.outputs.version }}-${{ steps.time.outputs.time }}
tag_name: ${{ steps.time.outputs.time }}
Expand Down Expand Up @@ -236,11 +236,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Publish Release
uses: StuYarrow/publish-release@v1
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ needs.release.outputs.id }}
release_id: ${{ needs.release.outputs.id }}

cleanup:
name: Cleanup BuildTrain
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get changed Files
id: changed-files
uses: Ana06/get-changed-files@v2.2.0
uses: Ana06/get-changed-files@v2.3.0
with:
format: 'json'

Expand All @@ -37,7 +37,7 @@ jobs:
- name: Create Matrix Armbian
id: set-matrix-armbian
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
JSON_STRING: ${{ steps.changed-files.outputs.added_modified }}
ALL_FILES: ${{ steps.set-matrix-all-armbian.outputs.configfiles }}
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Create Matrix OrangePi
id: set-matrix-orangepi
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
JSON_STRING: ${{ steps.changed-files.outputs.added_modified }}
ALL_FILES: ${{ steps.set-matrix-all-orangepi.outputs.configfiles }}
Expand Down Expand Up @@ -145,19 +145,19 @@ jobs:
sha256sum ${{ steps.rename-files.outputs.image }}.img.xz > ${{ steps.rename-files.outputs.image }}.img.xz.sha256
- name: Upload Compressed Image
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.rename-files.outputs.image }}.img.xz
path: ${{ github.workspace }}/build/output/images/${{ steps.rename-files.outputs.image }}.img.xz

- name: Upload Compressed Image Checksum
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.rename-files.outputs.image }}.img.xz.sha256
path: ${{ github.workspace }}/build/output/images/${{ steps.rename-files.outputs.image }}.img.xz.sha256

- name: Upload Image Checksum
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.rename-files.outputs.image }}.img.sha256
path: ${{ github.workspace }}/build/output/images/${{ steps.rename-files.outputs.image }}.img.sha256
Expand Down Expand Up @@ -228,19 +228,19 @@ jobs:
sha256sum ${{ steps.rename-files.outputs.image }}.img.xz > ${{ steps.rename-files.outputs.image }}.img.xz.sha256
- name: Upload Compressed Image
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.rename-files.outputs.image }}.img.xz
path: ${{ github.workspace }}/build/output/images/${{ steps.rename-files.outputs.image }}.img.xz

- name: Upload Compressed Image Checksum
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.rename-files.outputs.image }}.img.xz.sha256
path: ${{ github.workspace }}/build/output/images/${{ steps.rename-files.outputs.image }}.img.xz.sha256

- name: Upload Image Checksum
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.rename-files.outputs.image }}.img.sha256
path: ${{ github.workspace }}/build/output/images/${{ steps.rename-files.outputs.image }}.img.sha256

0 comments on commit 32321e0

Please sign in to comment.