Skip to content

chore(deps): update rust crate gtk to 0.11.0 #668

chore(deps): update rust crate gtk to 0.11.0

chore(deps): update rust crate gtk to 0.11.0 #668

Workflow file for this run

name: Nix Derivation
on:
pull_request:
branches: [ master ]
push:
branches: [ master, 2.x-dev ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Install fixsha
run: cargo install fixsha
- name: Run fixsha
run: fixsha
- name: Commit hash fixes
if: github.event_name == 'pull_request'
run: |
if [[ -n $(git status -s package.nix) ]]; then
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add package.nix
# Amend for bots (dependabot, renovate), new commit for everyone else
if [[ "${{ github.actor }}" == "dependabot[bot]" ]] || [[ "${{ github.actor }}" == "renovate[bot]" ]]; then
git commit --amend --no-edit
# Rebase onto latest master before pushing - prevents "Base branch was modified"
# when multiple Renovate PRs merge in quick succession
git fetch origin ${{ github.base_ref }}
git rebase origin/${{ github.base_ref }}
git push --force origin HEAD:${{ github.head_ref }}
else
git commit -m "chore(nix): fix cargoHash"
git push origin HEAD:${{ github.head_ref }}
fi
fi