Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes via gt update for remote gt #153

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions .github/workflows/gt-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# / __/ -_) _ `/ _ \/ _ \/ _ `/ / It is licensed under European Union Public License 1.2
# \__/\__/\_, /\___/_//_/\_,_/_/ Please report bugs and contribute back your improvements
# /___/
# Version: v0.14.0
# Version: v0.16.0
#
###################################
name: "gt update"
Expand Down Expand Up @@ -40,8 +40,8 @@ jobs:
echo "public key trusted" && \
mkdir ./gpg && \
gpg --homedir ./gpg --import ./signing-key.public.asc && \
wget "https://raw.githubusercontent.com/tegonal/gt/v0.14.0/install.sh" && \
wget "https://raw.githubusercontent.com/tegonal/gt/v0.14.0/install.sh.sig" && \
wget "https://raw.githubusercontent.com/tegonal/gt/v0.16.0/install.sh" && \
wget "https://raw.githubusercontent.com/tegonal/gt/v0.16.0/install.sh.sig" && \
gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \
chmod +x ./install.sh && \
echo "verification successful" || (echo "!! verification failed, don't continue !!"; exit 1) && \
Expand All @@ -58,7 +58,7 @@ jobs:
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.determine_remotes.outputs.matrix) }}
name: 'Update remote ${{ matrix.remote }}'
name: 'Update ${{ matrix.remote }}'
steps:
- name: Import gpg key(s) defined in vars.PUBLIC_GPG_KEYS_WE_TRUST and secrets.PUBLIC_GPG_KEYS_WE_TRUST
run: |
Expand All @@ -79,8 +79,8 @@ jobs:
echo "public key trusted" && \
mkdir ./gpg && \
gpg --homedir ./gpg --import ./signing-key.public.asc && \
wget "https://raw.githubusercontent.com/tegonal/gt/v0.14.0/install.sh" && \
wget "https://raw.githubusercontent.com/tegonal/gt/v0.14.0/install.sh.sig" && \
wget "https://raw.githubusercontent.com/tegonal/gt/v0.16.0/install.sh" && \
wget "https://raw.githubusercontent.com/tegonal/gt/v0.16.0/install.sh.sig" && \
gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \
chmod +x ./install.sh && \
echo "verification successful" || (echo "!! verification failed, don't continue !!"; exit 1) && \
Expand All @@ -91,17 +91,20 @@ jobs:
- name: reset gpg keys
run: gt reset --gpg-only true -r "${{ matrix.remote }}"
- name: gt update
run: gt update -r "${{ matrix.remote }}"
id: gt_update
run: |
gt update -r "${{ matrix.remote }}"
echo "remote_version=$(git --git-dir='.gt/remotes/${{ matrix.remote}}/repo/.git' tag | sort --version-sort | tail -n 1)" >> $GITHUB_OUTPUT
- name: git status
run: git status
- name: Create pull request if necessary
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
branch: 'gt/update/${{ matrix.remote }}'
base: main
title: 'Changes via gt update for remote ${{ matrix.remote }}'
title: 'update files of remote ${{ matrix.remote }} to version ${{steps.gt_update.outputs.remote_version}} via gt'
commit-message: update files pulled via gt
body: "following the changes after running `gt update -r \"${{ matrix.remote }}\"` (among other things)"
body: "following the changes after running `gt update -r \"${{ matrix.remote }}\"` and reset gpg keys"
delete-branch: true
token: ${{ secrets.AUTO_PR_TOKEN }}
push-to-fork: ${{ secrets.AUTO_PR_FORK_NAME }}
2 changes: 1 addition & 1 deletion .gt/remotes/gt/pulled.tsv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#@ Version: 1.0.0
tag file relativeTarget sha512
v0.14.0 .github/workflows/gt-update.yml ../.github/workflows/gt-update.yml c54eabfe963874762942d742ac0cab9213f6579ef932e6e40ba890d5317199b19c57541e465aa291bd702725bdc8c3f49ddb01c4bc95a8fff11ff6e044ee6a84
v0.16.0 .github/workflows/gt-update.yml ../.github/workflows/gt-update.yml b084f26e204a737ba6a3c0bf67099ba68e419daa7229cc3dd88e68b5c7aec82a666742b9711f323d71f06f39c2ec9d23f3bf29eb96f4373d68dfab6cbdfd989c