Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ci] build: automate messages on released prs#29819

Merged
iBotPeaches merged 6 commits into
fastlane:masterfrom
iBotPeaches:github-action-version-fix
Dec 28, 2025
Merged

[ci] build: automate messages on released prs#29819
iBotPeaches merged 6 commits into
fastlane:masterfrom
iBotPeaches:github-action-version-fix

Conversation

@iBotPeaches
Copy link
Copy Markdown
Member

@iBotPeaches iBotPeaches commented Dec 18, 2025

Automation is back!

The messages on merged & released prs.

The Nerdy

When things moved to GitHub Actions GITHUB_TOKEN those workflows cannot trigger their own workflows to prevent infinite loops. This meant the job that ran after a deploy never ran. If we want to keep a solution that depends on no PAT keys - we have to make changes.

Changes

  1. During Stage 2 of a Release we write a file to repo called latest_fl_version.txt - this is AFTER gem creation so it is not included in gem file.
  2. The job exports that file as an attachment to that workflow.
  3. A fixed workflow now reacts to that finished job (checks if completed) and downloads that file.
  4. It extracts that file, identifys version released and passes onward to communicate-on-pull-requested-released.

Testing

I heavily tested on my fork until it worked. I can confirm both responses to PRs and issues work.

Screenshot From 2025-12-21 07-35-41 Screenshot From 2025-12-21 07-35-31

https://github.com/iBotPeaches/fastlane/actions/runs/20409818600 - the CI

iBotPeaches#14 - test pr

iBotPeaches#15 - test issue

Other

@iBotPeaches iBotPeaches marked this pull request as draft December 18, 2025 19:23
Copy link
Copy Markdown
Collaborator

@lacostej lacostej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of small non blocker comments.

Comment thread .github/workflows/announce_release.yml Outdated
- name: Extract version from artifact
if: ${{ github.event_name == 'workflow_run' }}
run: |
if [ -f "latest.txt" ]; then
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: I usually prefer fail fast as it reduces amount of code. Do we have such guidelines ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer that too. The earlier iteration had many ifs, but I reworked it then never reduced the logic to fail-fast.

Comment thread fastlane/Fastfile Outdated
release_url = github_release['html_url']
message = [title, description, release_url].join("\n\n")
add_fastlane_git_tag(tag: "fastlane/#{version}", message: message)
File.write("../latest.txt", version)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider adding generated file to .gitignore

Comment thread .github/workflows/announce_release.yml Outdated
- name: Extract version from artifact
if: ${{ github.event_name == 'workflow_run' }}
run: |
if [ -f "latest.txt" ]; then
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would latest_fl_version.txt be more self explanatory as a file name?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed - renamed it

@iBotPeaches iBotPeaches merged commit a643efb into fastlane:master Dec 28, 2025
9 checks passed
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @iBotPeaches 👋

Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉
The code change now lives in the master branch, however it wasn't released to RubyGems yet.
We usually ship about once a month, and your PR will be included in the next one.

Please let us know if this change requires an immediate release by adding a comment here 👍
We'll notify you once we shipped a new release with your changes 🚀"

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulations! 🎉 This was released as part of fastlane 2.231.0 🚀

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants