diff --git a/.github/workflows/compress_pngs.yml b/.github/workflows/compress_pngs.yml index c7fc26ee..19aca213 100644 --- a/.github/workflows/compress_pngs.yml +++ b/.github/workflows/compress_pngs.yml @@ -12,10 +12,14 @@ on: jobs: compress_pngs: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout Repository uses: actions/checkout@v3 + with: + ref: ${{ github.ref_name }} - name: Install Dependencies run: | @@ -33,5 +37,5 @@ jobs: git config --global user.name "Dashboard Icons Bot" git add png/ git commit -m ":compression: Compressed PNGs" || exit 0 - git pull --rebase - git push + git pull --rebase origin ${{ github.ref_name }} + git push origin HEAD:${{ github.ref_name }} diff --git a/.github/workflows/convert_svg_assets.yml b/.github/workflows/convert_svg_assets.yml index a3d548c5..627027b3 100644 --- a/.github/workflows/convert_svg_assets.yml +++ b/.github/workflows/convert_svg_assets.yml @@ -1,4 +1,4 @@ -name: Convert SVG Assets 🔄 +name: Convert SVG Assets ♻️ on: push: @@ -10,10 +10,14 @@ on: jobs: convert_assets: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout Repository uses: actions/checkout@v3 + with: + ref: ${{ github.ref_name }} - name: Set Up Python uses: actions/setup-python@v4 @@ -32,5 +36,6 @@ jobs: git config --global user.email "noreply@lammers.media" git config --global user.name "Dashboard Icons Bot" git add png/ webp/ - git commit -m ":counterclockwise_arrows: Convert SVG assets to PNG and WEBP" || exit 0 - git push + git commit -m ":recycle: Convert SVG assets to PNG and WEBP" || exit 0 + git pull --rebase origin ${{ github.ref_name }} + git push origin HEAD:${{ github.ref_name }} diff --git a/.github/workflows/generate_file_tree.yml b/.github/workflows/generate_file_tree.yml index ff5dbc46..6232ff85 100644 --- a/.github/workflows/generate_file_tree.yml +++ b/.github/workflows/generate_file_tree.yml @@ -10,10 +10,14 @@ on: jobs: generate_file_tree: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout Repository uses: actions/checkout@v3 + with: + ref: ${{ github.ref_name }} - name: Set Up Python uses: actions/setup-python@v4 @@ -29,4 +33,5 @@ jobs: git config --global user.name "Dashboard Icons Bot" git add ../tree.json git commit -m ":construction_worker: Generate file tree" || exit 0 - git push + git pull --rebase origin ${{ github.ref_name }} + git push origin HEAD:${{ github.ref_name }} diff --git a/.github/workflows/generate_icons_page.yml b/.github/workflows/generate_icons_page.yml index 93ed5f11..d8b5350e 100644 --- a/.github/workflows/generate_icons_page.yml +++ b/.github/workflows/generate_icons_page.yml @@ -10,10 +10,14 @@ on: jobs: build_icons_page: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout Repository uses: actions/checkout@v3 + with: + ref: ${{ github.ref_name }} - name: Set Up Python uses: actions/setup-python@v4 @@ -29,4 +33,5 @@ jobs: git config --global user.name "Dashboard Icons Bot" git add ICONS.md git commit -m ":construction_worker: Generate ICONS.md" || exit 0 - git push + git pull --rebase origin ${{ github.ref_name }} + git push origin HEAD:${{ github.ref_name }}