-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Actions: Bump reusable actions to be compatible with node16
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
1 parent
f89feea
commit fe6205b
Showing
3 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | | ||
|
@@ -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 |