Skip to content

Commit

Permalink
Update galaxy_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ji-podhead authored Aug 8, 2024
1 parent 6ef658a commit afedd08
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/galaxy_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,37 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: test
run: |
python ./utils/python/parse_json.py ./plugin_requirements.json
- name: Get current commit ID
run: echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV

- name: Get previous commit ID
run: |
PREV_COMMIT_ID=$(git rev-list --max-parents=0 HEAD | head -n 1)
echo "PREV_COMMIT_ID=$PREV_COMMIT_ID" >> $GITHUB_ENV
- name: Check if requirements have changed
id: check_changes
run: |
# Überprüfen Sie, ob sich plugin_requirements.yml geändert hat
dif=
echo $dif
CHANGED=$(git diff HEAD 'plugin_requirements.yml')
if [ -z "$CHANGED" ]; then
else
echo "CHANGED=false" >> $GITHUB_ENV
fi
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
if: CHANGED==false
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
Expand Down

0 comments on commit afedd08

Please sign in to comment.