Skip to content

Commit

Permalink
GHA: correct release github action
Browse files Browse the repository at this point in the history
    - we should wait release image
    - remove upload action, because we could complete the whole tasks at
      on the same time.

Signed-off-by: Vicente Cheng <[email protected]>
  • Loading branch information
Vicente-Cheng committed Feb 3, 2025
1 parent 9cb8f14 commit 61a1a66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/installer-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- name: fetch-target-version
run: |
run: echo "targetVersion=$(echo ${{ inputs.tag }} | cut -d'-' -f1)" >> $GITHUB_ENV
echo "targetVersion=$(echo ${{ inputs.tag }} | cut -d'-' -f1)" >> $GITHUB_ENV
echo "Get targetVersion: $targetVersion"
- name: Install docker
run: zypper ref && zypper -n install docker
Expand All @@ -38,11 +38,7 @@ jobs:
echo "Diff $BASE_OS_IMAGE with ${{ env.IMAGE_NAME }}..."
container-diff diff daemon://docker.io/$BASE_OS_IMAGE daemon://docker.io/${{ env.IMAGE_NAME }} --type=rpm --output=diff-result.txt
cat diff-result.txt
- name: Upload container-diff result
uses: actions/upload-artifact@v3
with:
name: diff-result
path: diff-result.txt
echo "packagesDiff=$(cat diff-result.txt)" >> $GITHUB_ENV
create-installer-pr:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -90,7 +86,7 @@ jobs:
**More info:**
```
$DIFF
$packagesDiff
```
create-addon-pr:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
secrets: inherit

create-corresponding-pull-requests:
needs: build-for-release
uses: ./.github/workflows/installer-pr.yml
with:
tag: ${{ github.ref_name }}

0 comments on commit 61a1a66

Please sign in to comment.