Add separate check when the the request itself failed #3555
Workflow file for this 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
name: Release (development) | |
on: | |
push: | |
branches: | |
- "*" | |
tags-ignore: | |
- v* | |
jobs: | |
build: | |
name: Build and upload | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.21 | |
id: go | |
- name: Checkout code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Build binaries | |
run: | | |
go generate ./pkg/capacity/... | |
cd cmds | |
make | |
env: | |
GO111MODULE: on | |
- name: Collecting files | |
run: | | |
scripts/collect.sh ${{ github.workspace }}/archive | |
- name: Set name of the development build | |
id: setname | |
run: | | |
echo "build=zos:v$(date +%y%m%d.%-H%M%S.0)-dev.flist" >> $GITHUB_OUTPUT | |
- name: Publish flist (${{ github.sha }}) | |
if: success() | |
uses: threefoldtech/publish-flist@master | |
with: | |
token: ${{ secrets.HUB_JWT }} | |
action: publish | |
user: tf-autobuilder | |
root: archive | |
name: zos-${{ github.sha }}.flist | |
- name: Symlink flist (development) | |
uses: threefoldtech/publish-flist@master | |
with: | |
token: ${{ secrets.HUB_JWT }} | |
action: symlink | |
user: tf-autobuilder | |
name: zos-${{ github.sha }}.flist | |
target: ${{ steps.setname.outputs.build }} | |
- name: Crosslink flist (development) | |
if: success() && github.ref == 'refs/heads/main' | |
uses: threefoldtech/publish-flist@master | |
with: | |
token: ${{ secrets.HUB_JWT }} | |
action: crosslink | |
user: tf-zos | |
name: zos:development-3:latest.flist | |
target: tf-autobuilder/${{ steps.setname.outputs.build }} |