Skip to content

feat: Modify GitHub workflow file#19

Merged
ufo5260987423 merged 5 commits intoMoganLab:mainfrom
VSteveHL:ospp-pr-workflow
Jul 14, 2025
Merged

feat: Modify GitHub workflow file#19
ufo5260987423 merged 5 commits intoMoganLab:mainfrom
VSteveHL:ospp-pr-workflow

Conversation

@VSteveHL
Copy link
Collaborator

I have modified the .github/workflows/release.yaml file and made the following changes:

  • Removed the repo variable:
    • This variable specifies which repository the release targets. Since its default value is the current repository, I believe leaving it empty is reasonable.
  • Added name
  • Added tag_name
  • Added body to provide some contextual information.

It is worth noting that in the softprops/action-gh-release action, the overwrite_files variable defaults to True. This means that when we explicitly specify a tag_name, the workflow will not repeatedly create new releases but will instead update the files associated with the specified tag. I think this behavior is reasonable for automated builds. However, if you consider this behavior inappropriate, we could modify the tag_name to a format like automated_build-${{ github.run_number }}. This way, a new release would be created for each commit.

For more configurable options in softprops/action-gh-release, you can refer to: softprops/action-gh-release#inputs

VSteveHL added 5 commits July 10, 2025 19:12
I have modified the `.github/workflows/release.yaml` file and made the following changes:

- Removed the `repo` variable:
    - This variable specifies which repository the release targets. Since its default value is the current repository, I believe leaving it empty is reasonable.
- Added `name`
- Added `tag_name`
- Added `body` to provide some contextual information.
In commit 0d79527, a modification was made to `.github/workflows/release.yaml`, adding the `--static` parameter in the "Compile executable on Linux musl" step. However, the corresponding `Dockerfile.musl` was not updated, which caused errors during the build process. This commit adds the `util-linux-static` package to `Dockerfile.musl`, allowing the build to proceed successfully.
@ufo5260987423 ufo5260987423 merged commit e5c0d45 into MoganLab:main Jul 14, 2025
1 of 2 checks passed
@VSteveHL
Copy link
Collaborator Author

Just a quick update on why the release workflow failed. It's not a mistake in the workflow file itself. GitHub Actions has special, stricter security for Pull Requests (especially from forks like mine).

This means the GITHUB_TOKEN only has read-only access during PRs, so it can't create releases. It's a built-in safety feature from GitHub to protect the main repository.

@VSteveHL
Copy link
Collaborator Author

And I think our musl build was an innocent bystander in this permission issue. 😢

@VSteveHL VSteveHL deleted the ospp-pr-workflow branch July 14, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants