This action does not work between different releases
See original GitHub issueHi, 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:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@alexcroox I also tried to find it, and with example of @rigoneri I came up with this solution with finding last tag:
@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)