question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This action does not work between different releases

See original GitHub issue

Hi, I have a workflow that it’s triggered only by the release event. The problem is that it does not detect any file changes inside that release.

This is the workflow:

name: Deploy

on:
  release:
    types: [ released ]

env:
  PROD_IMAGE_PATH: ghcr.io/badgermaps/badger-docrouter:prod
  DEV_IMAGE_PATH: ghcr.io/badgermaps/badger-docrouter:dev

jobs:
  needs-rebuild:
      runs-on: ubuntu-latest
      outputs:
        changed: ${{ steps.needs-rebuild.outputs.files }}
      steps:
        - uses: actions/checkout@v2
        - uses: dorny/paths-filter@v2
          id: needs-rebuild
          with:
            filters: |
              files:
                - 'Dockerfile'
                - 'requirements.txt'
                - 'package.json'

If the release contains changes on Dockerfile, they are not detected.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
0rocommented, Aug 2, 2022

@alexcroox I also tried to find it, and with example of @rigoneri I came up with this solution with finding last tag:

run: |
  tag=`git tag --sort=creatordate | tail -2 | sed -n '1p'`
  echo "Tag: $tag"
  sha=`git show-ref --tags | grep $tag | awk '{print $1;}'`
  echo "SHA: $sha"
  echo "::set-output name=sha::$sha"
0reactions
alexcrooxcommented, Jul 18, 2022

@rigoneri did you end up making an action for comparing changes since the last tag on the branch? I’m looking for similar functionality for release deployments (which I handle with tags)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Jira automation release version action doesn't tri...
Solved: Hello, I have a rule in 1 project that triggers an action of a version release in another project. In the second...
Read more >
GitHub action not run on release published · Issue #766
I use https://github.com/google-github-actions/release-please-action and it successfully generates a GitHub release once the release PR gets merged.
Read more >
Github Action different between release created and published
If the release is created from "Draft a new release" button on the /releases page, both events will trigger, as the release goes...
Read more >
Set up an open, closed, or internal test - Play Console Help
Difference between an internal, closed, and open test? ... You can create releases on three testing tracks before you release your app to...
Read more >
Evaluate and update Conditional Access policies after new ...
In reviewing your Conditional Access policies, you should focus on whether you provide a different app experience between macOS and iOS. Additionally, we ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found