diff options
author | Andrii Andrieiev <a.andrieiev@sentrium.io> | 2024-01-10 10:05:43 +0200 |
---|---|---|
committer | Andrii Andrieiev <a.andrieiev@sentrium.io> | 2024-01-10 10:05:43 +0200 |
commit | 28eb6ebe6508717a5d2585accf654a6e3b37195c (patch) | |
tree | a44739ca634c588b7a3efbd6163ee0c4ca2c769e /.github | |
parent | 7c255d9ae5aaa8327e27f040b83890f70f316156 (diff) | |
download | vyos-rolling-nightly-builds-28eb6ebe6508717a5d2585accf654a6e3b37195c.tar.gz vyos-rolling-nightly-builds-28eb6ebe6508717a5d2585accf654a6e3b37195c.zip |
Checkout order changed (no vyos-build rpeo found fix)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/vyos-rolling-nightly-build.yml | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/.github/workflows/vyos-rolling-nightly-build.yml b/.github/workflows/vyos-rolling-nightly-build.yml index 799e674..692143c 100644 --- a/.github/workflows/vyos-rolling-nightly-build.yml +++ b/.github/workflows/vyos-rolling-nightly-build.yml @@ -77,6 +77,7 @@ jobs: run: git clone -b current --single-branch https://github.com/vyos/vyos-build - name: Git clone vyos-1x + if: ${{ !inputs.SKIP_RELEASE_PUBLISHING }} run: git clone -b current --single-branch https://github.com/vyos/vyos-1x ### Smoketest ### @@ -198,32 +199,9 @@ jobs: path: ./vyos-${{ env.BUILD_VERSION }}-amd64.iso.minisig retention-days: 30 if-no-files-found: error - - - name: Fix files and directories permissions to do checkout - if: ${{ !inputs.SKIP_RELEASE_PUBLISHING }} - run: | - sudo chown -R $(whoami):$(whoami) ./* - # If someone pushes commit to this repo while building process the workflow would fall on autocommit step. There is a fix: - - uses: actions/checkout@v4 - if: ${{ !inputs.SKIP_RELEASE_PUBLISHING }} ### Release publishing ### - - name: Create version.json - if: ${{ !inputs.SKIP_RELEASE_PUBLISHING }} - id: create-json - uses: jsdaniell/create-json@v1.2.2 - with: - name: "version.json" - json: | - [ - { - "url": "https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/${{ env.BUILD_VERSION }}/vyos-${{ env.BUILD_VERSION }}-amd64.iso", - "version": "${{ env.BUILD_VERSION }}", - "timestamp": "${{ env.TIMESTAMP }}" - } - ] - - name: Retrieve the latest success build for vyos-build and vyos-1x if: ${{ !inputs.SKIP_RELEASE_PUBLISHING }} run: | @@ -268,6 +246,14 @@ jobs: "pr_template": "- #{{TITLE}}\n - PR: vyos/vyos-build##{{NUMBER}}" } + - name: Fix files and directories permissions to do checkout + if: ${{ !inputs.SKIP_RELEASE_PUBLISHING }} + run: | + sudo chown -R $(whoami):$(whoami) ./* + + - uses: actions/checkout@v4 # If someone pushes commit to this repo while building process the workflow would fall on autocommit step. There is a fix. + if: ${{ !inputs.SKIP_RELEASE_PUBLISHING }} + - name: Generate CHANGELOG.md if: ${{ !inputs.SKIP_RELEASE_PUBLISHING }} run: | @@ -279,6 +265,21 @@ jobs: EOF cat CHANGELOG.md + - name: Create version.json + if: ${{ !inputs.SKIP_RELEASE_PUBLISHING }} + id: create-json + uses: jsdaniell/create-json@v1.2.2 + with: + name: "version.json" + json: | + [ + { + "url": "https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/${{ env.BUILD_VERSION }}/vyos-${{ env.BUILD_VERSION }}-amd64.iso", + "version": "${{ env.BUILD_VERSION }}", + "timestamp": "${{ env.TIMESTAMP }}" + } + ] + - name: Create autocommit and tag if: ${{ !inputs.SKIP_RELEASE_PUBLISHING }} uses: stefanzweifel/git-auto-commit-action@v4 |