-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.59 KB
/
Repository-Update.yml
File metadata and controls
54 lines (47 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: README.md Updater
description: Automatically updates the README.md file of this repository, this is NOT a reusable workflow
on:
workflow_dispatch:
push:
paths:
- '**/*.ts'
- '**/*.tsx'
- '**/*.yml'
- '**/*.yaml'
- 'Dockerfile'
- '**/*.sh'
env:
IMAGE_NAME: bracketed/actions-manager
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Project
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: true
- name: Initialise Repository
run: git init
- name: Configure Git
uses: Bracketed/Workflows/actions/git-configure@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
- name: Build
uses: docker/build-push-action@v6
with:
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
push: false
context: .
secrets: |
GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}
- name: Run Publish Action
run: docker run --env GH_TOKEN=${{ secrets.GITHUB_TOKEN }} --rm ${{ env.IMAGE_NAME }}:main