Skip to content

[Actions] Updated .github/actions/save-secret-as-file/action.yml #3073

[Actions] Updated .github/actions/save-secret-as-file/action.yml

[Actions] Updated .github/actions/save-secret-as-file/action.yml #3073

Workflow file for this run

--- # Dependabot: rebase open pull requests
name: "Dependabot: Rebase"
on:
push:
branches:
- main
release:
types: [published]
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: false
permissions:
contents: read
jobs:
auto-rebase:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.event_name == 'release'
timeout-minutes: 5
steps:
- name: "Check Required Secrets"
shell: bash
run: |
if [ -z "${{secrets.SOURCE_PUSH_TOKEN}}" ]; then
echo "::error::SOURCE_PUSH_TOKEN is required but not set"
exit 1
fi
- name: "Initialise Workspace"
if: runner.environment == 'self-hosted'
shell: bash
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE"
- name: "Set Active Environment"
shell: bash
run: |
{
echo "ACTIVE_RUNNER_NAME=${{runner.name}}"
echo "ACTIVE_HOSTNAME=$HOSTNAME"
echo "ACTIVE_USER=$USER"
} >> "$GITHUB_ENV"
- name: "Rebase"
uses: bbeesley/gha-auto-dependabot-rebase@v1.5.225
env:
GITHUB_TOKEN: ${{secrets.SOURCE_PUSH_TOKEN}}