Comments (1)
Reading the documentation on github actions and the package from https://github.com/dorny/paths-filter this appears to be the semantically correct way to perform an update on a file change. Syntax is probably incorrect.
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
deps_updated:
- 'requirements.txt'
...
# Install SSH Key
# Update Python Project
...
- name: Update python depedencies
env:
AUTHKEYNAME: ${{ vars.AUTH_KEY_NAME }}
with:
host: ${{secrets.SSH_HOST}}
key: ${{secrets.SSH_KEY}}
username: ${{secrets.SSH_USERNAME}}
envs: AUTHKEYNAME
if: steps.filter.outputs.deps_updated == 'true'
script: |
echo "Moving to project directory"
cd ~/project/AntiScamBot
echo "Updating requirements"
pip install -r requirements.txt
echo "Update success"
from antiscambot.
Related Issues (20)
- DM server owner to activate after bot addition HOT 1
- Create list of EnvVars used HOT 4
- Add Security Policy
- Add Contributing Guidelines HOT 1
- Detect if ?activate is ran outside of the control server
- Refactor: Separate core functionality from bot code HOT 2
- Add confirmation on ban action HOT 1
- Check bot role during bans with permission errors HOT 2
- Add a command that allows for reporting outside of the control server HOT 1
- Changing the name of the bot HOT 4
- Create a Terms of Service document
- Combine PrepareBan/Unban into a shared function
- Add thread link information to ban data HOT 5
- Change the ban reasons
- Submit bot verification documentation HOT 1
- Update scamcheck with new permissions
- Docs: SEO tags are not getting properly liquified
- Update documentation on commands HOT 4
- Sub-instance activation permissions issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antiscambot.