Skip to content

fix: GH docs update workflow#3241

Merged
georglauterbach merged 3 commits intomasterfrom
fix/gh-docs-update-workflow
Apr 10, 2023
Merged

fix: GH docs update workflow#3241
georglauterbach merged 3 commits intomasterfrom
fix/gh-docs-update-workflow

Conversation

@georglauterbach
Copy link
Copy Markdown
Member

@georglauterbach georglauterbach commented Apr 10, 2023

Description

We execute ln -sf v12.0 latest, which will not replace the latest symlink, but create a new one: v11.3/v12.0, i.e. create a symlink inside what latest pointed to earlier, in this case v11.3.

This can easily be resolved by deleting latest first and not using -f flags that hide errors and such.

Fixes error as seen in https://github.com/docker-mailserver/docker-mailserver/actions/runs/4655940825/jobs/8239089021.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (README.md or the documentation under docs/)
  • If necessary I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

This resolves the bug seen in https://github.com/docker-mailserver/docker-mailserver/actions/runs/4655940825/jobs/8239089021
where we execute `ln -sf v12.0 latest`, which will not replace the
latest symlink, but create a new one: `v11.3/v12.0`, i.e. create a
symlink inside what `latest` pointed to earlier, in this case `v11.3`.

This can easily be resolved by deleting `latest` first and not using
`-f` gflags that hide errors and such.
This is not necessary and not desirable as it hides the error seen in
https://github.com/docker-mailserver/docker-mailserver/actions/runs/4655940825/jobs/8239089021
. We do **not** need it because the whole job is already guarded by
`if: startsWith(github.ref, 'refs/tags/')`, hence there will not be an
update unless a new tag is published.
@georglauterbach georglauterbach added this to the v12.1.0 milestone Apr 10, 2023
@georglauterbach georglauterbach self-assigned this Apr 10, 2023
@georglauterbach georglauterbach changed the title Fix/gh docs update workflow fix: GH docs update workflow Apr 10, 2023
@polarathene
Copy link
Copy Markdown
Member

Thanks for catching that and resolving it so quickly ❤️

@georglauterbach
Copy link
Copy Markdown
Member Author

Thanks for catching that and resolving it so quickly ❤️

I always monitor releases closely to catch issues like that :D

@georglauterbach georglauterbach merged commit ff08783 into master Apr 10, 2023
@georglauterbach georglauterbach deleted the fix/gh-docs-update-workflow branch April 10, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants