Skip to content

Commit

Permalink
GitHub Actions: Bump reusable actions to be compatible with node16
Browse files Browse the repository at this point in the history
Following actions were using node12 which is deprecated and they were
forced to use node16. Also upload-release-asset was deprecated so this
patch switches to maintained action listed in official repository

Signed-off-by: Pavel Abramov <[email protected]>
  • Loading branch information
uncleDecart committed Aug 6, 2024
1 parent f89feea commit fe6205b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/eden_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
- name: get eden
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: setup go
uses: actions/setup-go@v3
with:
Expand All @@ -42,9 +42,9 @@ jobs:
- name: get eden
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: setup go
uses: actions/setup-go@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Login to DockerHUB
id: login
run: |
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: setup
run: |
sudo apt update
Expand All @@ -36,7 +36,7 @@ jobs:
run: echo "TAG=$(echo "$REF" | sed -e 's#^.*/##')" >> "$GITHUB_ENV"
- name: Create a GitHub release
id: create-release
uses: actions/github-script@v3
uses: actions/github-script@v7
with:
result-encoding: string
script: |
Expand Down Expand Up @@ -72,11 +72,10 @@ jobs:
tar -zcvf eden.${{ matrix.os }}.${{ matrix.arch }}.tar.gz -C ./ ./eden ./README.md dist docs tests
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
with:
upload_url: ${{ steps.create-release.outputs.result }}
asset_path: ./eden.${{ matrix.os }}.${{ matrix.arch }}.tar.gz
asset_name: eden.${{ matrix.os }}.${{ matrix.arch }}.tar.gz
asset_content_type: application/gzip
files: ./eden.${{ matrix.os }}.${{ matrix.arch }}.tar.gz

0 comments on commit fe6205b

Please sign in to comment.