Skip to content

Commit

Permalink
Merge pull request #3 from i4Trust/ci
Browse files Browse the repository at this point in the history
Adding submodule refresh
  • Loading branch information
dwendland authored Aug 10, 2022
2 parents e397161 + 819ff4e commit 9e6dc74
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ on:
jobs:

generate-version:
name: Generate version
runs-on: ubuntu-latest

outputs:
version: ${{ steps.out.outputs.version }}
plain-version: ${{ steps.out.outputs.plain-version }}
Expand Down Expand Up @@ -41,6 +42,8 @@ jobs:
run: |
echo "::set-output name=version::$(echo ${VERSION}-PRE-${{ steps.pr_number.outputs.nr }})"
echo "::set-output name=plain-version::$(echo ${VERSION})"
git-release:
needs: ["generate-version"]
runs-on: ubuntu-latest
Expand Down
30 changes: 29 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,35 @@ on:

jobs:

refresh-modules:
name: Refresh Submodules
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo

- name: Create local changes
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "New Release: Update Submodules" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main


generate-version:
name: Generate version
runs-on: ubuntu-latest

outputs:
Expand All @@ -34,7 +61,8 @@ jobs:


git-release:
needs: ["generate-version"]
name: Git Release
needs: ["generate-version", "refresh-modules"]
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "fiware-catalogue"]
path = fiware-catalogue
url = https://github.com/FIWARE/catalogue.git
[submodule "i4trust-tutorials"]
path = i4trust-tutorials
url = https://github.com/i4Trust/tutorials.git
1 change: 0 additions & 1 deletion fiware-catalogue
Submodule fiware-catalogue deleted from 303cfa

0 comments on commit 9e6dc74

Please sign in to comment.