Skip to content

Commit

Permalink
Nightly fix Part 2 (DNF)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulchen-Panther committed Aug 25, 2024
1 parent ba22eb0 commit a0d6d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 45 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ jobs:
run: |
echo '::group::Checking the version number'
if [[ "${{ inputs.nightly }}" = true ]]; then
echo "$(tr -d '\n' < .version | sed s/-/_/g)+nightly$(date '+%Y%m%d')${{ inputs.head_sha }}" > .version
echo "$(tr -d '\n' < .version | sed s/-/~/g)^nightly$(date '+%Y%m%d')${{ inputs.head_sha }}" > .version
echo VERSION=$(cat .version) >> $GITHUB_ENV
else
echo VERSION=$(tr -d '\n' < .version | sed s/-/_/g) >> $GITHUB_ENV
echo VERSION=$(tr -d '\n' < .version | sed s/-/~/g) >> $GITHUB_ENV
fi
echo '::endgroup::'
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,55 +8,12 @@ on:

jobs:

###############################################
###### rpi_ws281x submodule update check ######
###############################################

update_submodule:
name: 🔁 Update Submodule rpi_ws281x
runs-on: ubuntu-latest
steps:
- name: ⬇ Checkout
uses: actions/checkout@v4
with:
repository: hyperion-project/hyperion.ng
persist-credentials: false
fetch-depth: 0
submodules: recursive

- name: 🔁 Update Submodule rpi_ws281x
id: update
run: git submodule update --remote --recursive dependencies/external/rpi_ws281x

- name: ✅ Check git status
id: status
run: echo "status=$(git status -s)" >> $GITHUB_OUTPUT

- name: ✏️ Add/Commit changes
if: ${{ steps.status.outputs.status }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "Hyperion-Bot"
git config --local diff.ignoreSubmodules dirty
git commit -am "Update submodule rpi_ws281x"
- name: 📦 Push changes
if: ${{ env.SECRET_BOT_TOKEN != null && steps.status.outputs.status }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.HYPERION_BOT_TOKEN }}
repository: hyperion-project/hyperion.ng
branch: master
env:
SECRET_BOT_TOKEN: ${{ secrets.HYPERION_BOT_TOKEN }}

##################################
###### APT/DNF commit check ######
##################################

check:
name: 🔀 Compare Repository with current master
needs: [update_submodule]
runs-on: ubuntu-latest
outputs:
build-apt-nightly: ${{ steps.apt-build-necessary.outputs.commit-has-changed }}
Expand Down

0 comments on commit a0d6d92

Please sign in to comment.