Minor actions fixes/updates

- always apt-get update before installing packages
- move to tagged official create_release action

The official GH create_release action now has support for body text from
file.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
This commit is contained in:
Phil Estes 2020-07-01 14:27:10 -04:00
parent 97a3f52c63
commit 57a9f0b50d
No known key found for this signature in database
GPG Key ID: 0F386284C03A1162
2 changed files with 4 additions and 2 deletions

View File

@ -238,6 +238,7 @@ jobs:
- name: Install Linux dependencies - name: Install Linux dependencies
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
run: | run: |
sudo apt-get update
sudo apt-get install -y btrfs-tools libseccomp-dev sudo apt-get install -y btrfs-tools libseccomp-dev
- name: Make - name: Make

View File

@ -82,6 +82,7 @@ jobs:
- name: Install Linux dependencies - name: Install Linux dependencies
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
run: | run: |
sudo apt-get update
sudo apt-get install -y btrfs-tools libseccomp-dev sudo apt-get install -y btrfs-tools libseccomp-dev
- name: HCS Shim commit - name: HCS Shim commit
id: hcsshim_commit id: hcsshim_commit
@ -146,13 +147,13 @@ jobs:
done done
- name: Create Release - name: Create Release
id: create_release id: create_release
uses: jbolda/create-release@v1.1.0 uses: actions/create-release@v1.1.2
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ github.ref }} tag_name: ${{ github.ref }}
release_name: containerd ${{ needs.check.outputs.stringver }} release_name: containerd ${{ needs.check.outputs.stringver }}
bodyFromFile: ./builds/containerd-release-notes/release-notes.md body_path: ./builds/containerd-release-notes/release-notes.md
draft: false draft: false
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') }} prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
- name: Upload Linux containerd tarball - name: Upload Linux containerd tarball